proof

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

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

func ParserJSON(jsonstr string) map[string]interface{}

ParserJSON 将json字符串数据解析成kv的map格式方便通过指定key搜索 目前只支持格式[{k:v},{k:v},{k:v}...]格式的jsonstr

Types

type CreateFunc

type CreateFunc func(value interface{}, format string, typ string) interface{}

CreateFunc create parse func

type InputMapInfo

type InputMapInfo struct {
	Key      string
	InputObj map[string]interface{}
}

InputMapInfo InputMapInfo

Jump to

Keyboard shortcuts

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