Documentation ¶
Index ¶
- func Camel2Case(name string) string
- func CamelCase(obj interface{}, ucfirst bool) map[string]interface{}
- func Case2Camel(name string) string
- func ContainsKey(obj map[string]interface{}, key string) bool
- func GetData(reader io.Reader) (map[string]interface{}, error)
- func HasId(obj map[string]interface{}) bool
- func IsArray(obj interface{}) bool
- func IsNumber(obj interface{}) (float64, bool)
- func IsString(obj interface{}) bool
- func Lcfirst(str string) string
- func ParseCamelCase(bytes []byte, ucfirst bool) map[string]interface{}
- func ParseData(jsonStr string) map[string]interface{}
- func ParseLcCamelCase(bytes []byte) map[string]interface{}
- func ParseSnakeCase(bytes []byte) map[string]interface{}
- func ParseUcCamelCase(bytes []byte) map[string]interface{}
- func SnakeCase(obj interface{}) map[string]interface{}
- func ToData(jsonStr []byte) map[string]interface{}
- func ToJson(data interface{}) string
- func ToStruct(m map[string]interface{}, result *interface{}) *interface{}
- func Ucfirst(str string) string
- type Buffer
- type JsonCamelCaseLcfirst
- type JsonCamelCaseUcfirst
- type JsonSnakeCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsKey ¶
func ParseCamelCase ¶
func ParseLcCamelCase ¶
func ParseSnakeCase ¶
func ParseUcCamelCase ¶
Types ¶
type JsonCamelCaseLcfirst ¶
type JsonCamelCaseLcfirst struct {
Value interface{}
}
小驼峰json
func (JsonCamelCaseLcfirst) MarshalJSON ¶
func (c JsonCamelCaseLcfirst) MarshalJSON() ([]byte, error)
type JsonCamelCaseUcfirst ¶
type JsonCamelCaseUcfirst struct {
Value interface{}
}
大驼峰json
func (JsonCamelCaseUcfirst) MarshalJSON ¶
func (c JsonCamelCaseUcfirst) MarshalJSON() ([]byte, error)
type JsonSnakeCase ¶
type JsonSnakeCase struct {
Value interface{}
}
下划线json
func (JsonSnakeCase) MarshalJSON ¶
func (c JsonSnakeCase) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.