Documentation
¶
Index ¶
Constants ¶
View Source
const ( //Number Format定义 Format_int = "int" Format_int64 = "int64" Format_int32 = "int32" Format_float32 = "float32" Format_float64 = "float64" //Text Format定义 Format_string = "string" Format_http = "http" Format_json = "json" Format_base64 = "base64" //Date Format定义 Format_rfc = "rfc" Format_iso = "iso" Format_utc = "utc" //Image Format定义 Format_jpg = "jpg" Format_png = "png" Format_url = "url" Format_hash = "hash" //File Format定义 Format_pdf = "pdf" )
数据type以及format常量的定义
Variables ¶
View Source
var ( // IsParserToKV 目前支持解析成嵌套模式,或者非嵌套模式的kv模式,默认支持非嵌套的kv模式 IsParserToKV = true )
Functions ¶
func ParserJSON ¶
ParserJSON 将json字符串数据解析成kv的map格式方便通过指定key搜索 目前只支持格式[{k:v},{k:v},{k:v}...]格式的jsonstr
Types ¶
type CreateFunc ¶
CreateFunc create parse func
type InputMapInfo ¶
InputMapInfo InputMapInfo
Click to show internal directories.
Click to hide internal directories.