machinery
machinery copied to clipboard
why not support custom arg type?
current supported task argument type
// construct custom type codec
type Codec interface{
Encode() ([]byte, error)
Decode([]byte) error
}
// register custom type.
Reggister("costum type name", codecInstance)