Documentation
¶
Index ¶
- func B64Dec(b64s string) (s string, err error)
- func B64Enc(s string) (b64s string)
- func B64MustDec(b64s string) string
- func Dec(format string, src string, dst interface{}) (err error)
- func Enc(format string, src interface{}) (dst string, err error)
- func JsonDec(s string, v interface{}) error
- func JsonEnc(v interface{}) (s string, err error)
- func JsonMustDec(s string, v interface{})
- func JsonMustEnc(v interface{}) string
- func MustDec(format string, src string, dst interface{})
- func MustEnc(format string, src interface{}) (dst string)
- func YamlDec(s string, v interface{}) error
- func YamlEnc(v interface{}) (s string, err error)
- func YamlMustDec(s string, v interface{})
- func YamlMustEnc(v interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dec ¶
Dec decodes string in specific format supported format strings are: base64: "b64", "base64" json: "json", "application/json", "application/x-json", "text/json", "text/x-json" yaml: "application/yaml", "application/x-yaml", "text/yaml", "text/x-yaml"
func Enc ¶
Enc encodes string to specific format supported format strings are: base64: "b64", "base64" json: "json", "application/json", "application/x-json", "text/json", "text/x-json" yaml: "application/yaml", "application/x-yaml", "text/yaml", "text/x-yaml"
func JsonMustDec ¶
func JsonMustDec(s string, v interface{})
JsonMustDec same as JsonDec but panics on error
func JsonMustEnc ¶
func JsonMustEnc(v interface{}) string
JsonMustEnc same as JsonEnc but panics on error
func YamlMustDec ¶
func YamlMustDec(s string, v interface{})
YamlMustDec same as YamlDec but panics on error
func YamlMustEnc ¶
func YamlMustEnc(v interface{}) string
YamlMustEnc same as YamlEnc but panics on error
Types ¶
This section is empty.