parse

package
v0.0.0-...-c2da2d2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FloatToIntString

func FloatToIntString(f float64) string

func GetFuncMap

func GetFuncMap() template.FuncMap

func IfElse

func IfElse(a bool, b, c interface{}) interface{}

func InterfaceToJsonString

func InterfaceToJsonString(v interface{}) string

任意类型转字符串,如果是字符类型,则会带有双引号

func InterfaceToString

func InterfaceToString(v interface{}) string

任意类型转字符串

func IsInStringSlice

func IsInStringSlice(el string, arr []interface{}) bool

func JsonMap

func JsonMap(text string, data map[string]interface{}) (res string, err error)

func LowerFirst

func LowerFirst(s string) string

func PrintJsonRows

func PrintJsonRows(jsonString string) error

func SnakeCase

func SnakeCase(str string) string

func SnakeToCamel

func SnakeToCamel(s string) string

func StringToMap

func StringToMap(jsonString string) (map[string]interface{}, error)

func UpperFirst

func UpperFirst(s string) string

func UpperFirst2

func UpperFirst2(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL