smn_data

package
v0.0.0-...-8887d1c Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 3 Imported by: 7

Documentation

Index

Constants

View Source
const (
	ERR_UNKNOW_TYPE = "err: unknow type. in smn_data_file"
)

Variables

This section is empty.

Functions

func GetDataFromStr

func GetDataFromStr(data string, res interface{}) error

func GetDataMapFromStr

func GetDataMapFromStr(data string) (map[string]interface{}, error)

func JsonToMap

func JsonToMap(data string) (map[string]interface{}, error)

func ValToJson

func ValToJson(val interface{}) (string, error)

func ValToMap

func ValToMap(val interface{}) (map[string]interface{}, error)

Types

type DataType

type DataType int
const (
	DATA_TYPE_UNKNOW DataType
	DATA_TYPE_JSON
	DATA_TYPE_XML
)

Jump to

Keyboard shortcuts

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