Documentation ¶
Index ¶
- func DelInArrayString(arr *[]string, index int) []string
- func ExistsInMap(sMap interface{}, index interface{}) bool
- func ExtCall(filename string, args ...string) (output []byte, err error)
- func FileExists(name string) bool
- func InArrayString(strArr *[]string, sep string) bool
- func JsonEncode(v interface{}) (re []byte)
- func ListToJson(list []interface{}) []byte
- func Md5File(filePath string) (string, error)
- func StringSliceUnique(s *[]string)
- func StringSplit(str string, sep string) []string
- func TomlConfigValueToJson(content string) (re []byte, err error)
- func TomlToJson(content string) ([]byte, error)
- func TomlToMap(content string) (map[string]interface{}, error)
- func TraverseTomlAsJson(t *toml.TomlTree) []byte
- func TraverseTomlTree(t *toml.TomlTree) map[string]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DelInArrayString ¶
func ExistsInMap ¶
func ExistsInMap(sMap interface{}, index interface{}) bool
func FileExists ¶
func InArrayString ¶
func JsonEncode ¶
func JsonEncode(v interface{}) (re []byte)
JsonEncode json编码. 不适用于普遍的数据类型,主要用于doveclient中 toml的转换。
func ListToJson ¶
func ListToJson(list []interface{}) []byte
func StringSliceUnique ¶
func StringSliceUnique(s *[]string)
func TomlConfigValueToJson ¶
解析配置系统中toml形式配置的值(即第一个key的值).
func TomlToJson ¶
func TraverseTomlAsJson ¶
将tomlTree转成json字节码。只适用于doveclient内部使用,非通用的json解码
func TraverseTomlTree ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.