ziggs/internal/data/functions.go

31 lines
627 B
Go

package data
// WIP concepts:
/*type ArgType uint8
const (
ArgTypeString ArgType = iota
ArgTypeInt
ArgTypeFloat
ArgTypeBool
ArgTypeColor // constrained to hex and color alias strings
ArgTypeSaturation // constrained to 1-255
ArgTypeDuration // constrained to time.Duration parsable format
ArgTypeTime // constrained to time.Time parsable format
ArgTypeDate // constrained to time.Time parsable format
)
// AddFunction example:
//
// desired: ziggs> test green
//
// AddFunction("test", map[int]data.ArgType{
// 0: "",
// })
func AddFunction(function string, args map[int]string) error {
}
*/