Documentation
¶
Index ¶
- func GlobalConfig() *conf.GlobalConfig
- func JsonAnnotate(ctx context.Context, jsonMap map[string]interface{}, cfg *conf.AnnotateConfig) (map[string]interface{}, error)
- func JsonMapCutter(ctx context.Context, jsonMap map[string]interface{}, cfg *conf.CutterConfig) (map[string]interface{}, error)
- func JsonProcess(ctx context.Context, jsonMap map[string]interface{}, opts ...JsonProcessOption) (m map[string]interface{}, err error)
- func JsonStrAnnotate(ctx context.Context, jsonStr string, cfg *conf.AnnotateConfig) (string, error)
- func JsonStrCutter(ctx context.Context, jsonStr string, cfg *conf.CutterConfig) (string, error)
- type JsonProcessOpt
- type JsonProcessOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GlobalConfig ¶
func GlobalConfig() *conf.GlobalConfig
func JsonAnnotate ¶
func JsonAnnotate(ctx context.Context, jsonMap map[string]interface{}, cfg *conf.AnnotateConfig) (map[string]interface{}, error)
JsonAnnotate Json注释,给JsonVal上加注释
func JsonMapCutter ¶
func JsonMapCutter(ctx context.Context, jsonMap map[string]interface{}, cfg *conf.CutterConfig) (map[string]interface{}, error)
JsonMapCutter 剪裁map
func JsonProcess ¶
func JsonProcess(ctx context.Context, jsonMap map[string]interface{}, opts ...JsonProcessOption) (m map[string]interface{}, err error)
JsonProcess 传入tcc或byte conf配置进行json的cut和annotate
func JsonStrAnnotate ¶
JsonStrAnnotate Json注释,给JsonVal上加注释
func JsonStrCutter ¶
JsonStrCutter 对json str进行剪裁
Types ¶
type JsonProcessOpt ¶
type JsonProcessOpt struct {
Config string
}
type JsonProcessOption ¶
type JsonProcessOption func(*JsonProcessOpt)
func WithConfig ¶
func WithConfig(config string) JsonProcessOption
Click to show internal directories.
Click to hide internal directories.