示例#1
0
func (keys *RecordKeys) processKeys(name string, values []string) []string {
	switch name {
	case "format":
		return wisplyFormat.ConvertFormats(values)
	}
	return values
}
示例#2
0
// ProcessFormats returns the formats in a wisply form
func (keys *RecordKeys) ProcessFormats() map[string]int {
	values := keys.get("format", false)
	return Compress(wisplyFormat.ConvertFormats(values))
}