Documentation ¶
Index ¶
- func Join(bufa []byte, bufbs ...[]byte) ([]byte, error)
- func Marshal(v interface{}) ([]byte, error)
- func MarshalConcat(va interface{}, vbs ...interface{}) ([]byte, error)
- func MarshalIndentConcat(va interface{}, prefix, indent string, vbs ...interface{}) ([]byte, error)
- func ReadConfigFile(name string, v interface{}) error
- func UnmarshalConcat(data []byte, va interface{}, vbs ...interface{}) error
- func ValueMarshalable(v interface{}) interface{}
- func WriteConfigFile(name string, v interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Marshal ¶ added in v0.0.120
Marshal returns the JSON encoding of v. enhance json.Marshal with map's key type, not only string, like interface{}
func MarshalConcat ¶
MarshalConcat returns the JSON encoding of va, vbs..., ignore conflict keys of json if meet later.
func MarshalIndentConcat ¶
func ReadConfigFile ¶
func UnmarshalConcat ¶
Unmarshal parses the JSON-encoded data and stores the result in the value pointed to by v. If v is nil or not a pointer, Unmarshal returns an InvalidUnmarshalError. ignore conflict keys of json if meet later.
func ValueMarshalable ¶ added in v0.0.143
func ValueMarshalable(v interface{}) interface{}
ValueMarshalable translate key of map from interface{} to string
func WriteConfigFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.