Documentation
¶
Index ¶
- func ConvertStringMapToString(m *StringMap, separate string) string
- func GetHashMapKV(maps StringMap) (keys []string, values []interface{})
- func GetJoinedWithKSort(params *StringMap) string
- func GetStringMapKV(maps StringMap) (keys []string, values []string)
- func HashMapToStructure(mapObj *HashMap, obj interface{}) (err error)
- func InHash(val interface{}, hash *HashMap) (exists bool, key string)
- func InStringMap(val string, maps *StringMap) (exists bool, keys []string)
- func JsonDecode(data []byte, v interface{}) error
- func JsonEncode(v interface{}) (string, error)
- func JsonEscape(str string) (string, error)
- func LoadObjectFromFile(jsonPath string, obj interface{}) (err error)
- func Map2Xml(obj *HashMap, isSub bool) (strXML string)
- func OpenYMLFile(yamlFile string, yamlObject interface{}) (err error)
- func SaveObjectToFile(obj interface{}, filePath string, perm fs.FileMode) (err error)
- func SaveYMLFile(yamlObject interface{}, savePath string, perm fs.FileMode) (err error)
- func Str2Xml(in string) string
- func StringMap2Xml(obj *StringMap) (strXML string)
- func Xml2HashMap(b []byte) (m map[string]interface{}, err error)
- type HashMap
- func FilterEmptyHashMap(mapData *HashMap) (filteredMap *HashMap)
- func MergeHashMap(toMap *HashMap, subMaps ...*HashMap) *HashMap
- func ReplaceHashMapRecursive(toMap *HashMap, subMaps ...*HashMap) *HashMap
- func StructToHashMap(obj interface{}) (newMap *HashMap, err error)
- func StructToHashMapWithXML(obj interface{}) (newMap *HashMap, err error)
- func Xml2Map(b []byte) (m HashMap, err error)
- type StringMap
- func FilterEmptyStringMap(mapData *StringMap) (filteredMap *StringMap)
- func HashMapToStringMap(obj *HashMap) (newMap *StringMap, err error)
- func MergeStringMap(toStringMap *StringMap, subStringMaps ...*StringMap) *StringMap
- func ReplaceStringMapRecursive(toMap *StringMap, subMaps ...*StringMap) *StringMap
- func StructToStringMap(obj interface{}) (*StringMap, error)
- func StructToStringMapWithTag(obj interface{}, tag string) (newMap *StringMap, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHashMapKV ¶
func GetJoinedWithKSort ¶
func GetStringMapKV ¶
func HashMapToStructure ¶
func JsonDecode ¶
func JsonEncode ¶
func JsonEscape ¶
func LoadObjectFromFile ¶
func OpenYMLFile ¶
func SaveObjectToFile ¶
func SaveYMLFile ¶
func StringMap2Xml ¶
func Xml2HashMap ¶
Types ¶
type HashMap ¶
type HashMap map[string]interface{}
func FilterEmptyHashMap ¶
------------------------------- Filter --------------------------------------------
func MergeHashMap ¶
------------------------------- Merge --------------------------------------------
func ReplaceHashMapRecursive ¶
------------------------------- Replace --------------------------------------------
func StructToHashMap ¶
func StructToHashMapWithXML ¶
type StringMap ¶
func FilterEmptyStringMap ¶
------------------------------- Filter --------------------------------------------
func HashMapToStringMap ¶
func MergeStringMap ¶
------------------------------- Merge --------------------------------------------
func ReplaceStringMapRecursive ¶
------------------------------- Replace --------------------------------------------
func StructToStringMap ¶
Click to show internal directories.
Click to hide internal directories.