Documentation
¶
Index ¶
- Variables
- func NotateVal(val interface{}, annotate *jconf.AnnotateFmt) (string, bool)
- func UnitToStr(val interface{}, unitCvt *jconf.UnitCvt) string
- type ArrayAnnotate
- type EnumAnnotate
- type JsonAnnotateImpl
- func (j *JsonAnnotateImpl) DoForArrayAnnotate(ctx context.Context, jsonMap map[string]interface{}, ...) (map[string]interface{}, error)
- func (j *JsonAnnotateImpl) DoForEnumAnnotate(ctx context.Context, jsonMap map[string]interface{}, ...) (map[string]interface{}, error)
- func (j *JsonAnnotateImpl) DoForNormalAnnotate(ctx context.Context, jsonMap map[string]interface{}, ...) (map[string]interface{}, error)
- func (j *JsonAnnotateImpl) DoForUnmarshalStr(ctx context.Context, jsonMap map[string]interface{}, cfg *jconf.JsonStrAction) (map[string]interface{}, error)
- func (j *JsonAnnotateImpl) JsonAnnotate(ctx context.Context, jsonMap map[string]interface{}, cfg *jconf.AnnotateConfig) (map[string]interface{}, error)
- type NormalAnnotate
- type UnmarshalStr
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ArrayAnnotateIns = &ArrayAnnotate{}
)
View Source
var (
EnumAnnotateIns = &EnumAnnotate{}
)
View Source
var (
NormalAnnotateIns = &NormalAnnotate{}
)
View Source
var (
UnmarshalStrIns = &UnmarshalStr{}
)
Functions ¶
Types ¶
type ArrayAnnotate ¶
type ArrayAnnotate struct { }
func (*ArrayAnnotate) DoArrayAnnotate ¶
func (e *ArrayAnnotate) DoArrayAnnotate(ctx context.Context, jsonMap map[string]interface{}, cfg map[string]*jconf.AnnotateFmt) (map[string]interface{}, error)
type EnumAnnotate ¶
type EnumAnnotate struct { }
func (*EnumAnnotate) DoEnumAnnotate ¶
func (e *EnumAnnotate) DoEnumAnnotate(ctx context.Context, jsonMap map[string]interface{}, cfg map[string]*jconf.AnnotateFmt) (map[string]interface{}, error)
type JsonAnnotateImpl ¶
type JsonAnnotateImpl struct { }
func GetJsonAnnotate ¶
func GetJsonAnnotate() *JsonAnnotateImpl
func (*JsonAnnotateImpl) DoForArrayAnnotate ¶
func (j *JsonAnnotateImpl) DoForArrayAnnotate(ctx context.Context, jsonMap map[string]interface{}, cfg map[string]*jconf.AnnotateFmt) (map[string]interface{}, error)
func (*JsonAnnotateImpl) DoForEnumAnnotate ¶
func (j *JsonAnnotateImpl) DoForEnumAnnotate(ctx context.Context, jsonMap map[string]interface{}, cfg map[string]*jconf.AnnotateFmt) (map[string]interface{}, error)
func (*JsonAnnotateImpl) DoForNormalAnnotate ¶
func (j *JsonAnnotateImpl) DoForNormalAnnotate(ctx context.Context, jsonMap map[string]interface{}, cfg map[string]*jconf.AnnotateFmt) (map[string]interface{}, error)
func (*JsonAnnotateImpl) DoForUnmarshalStr ¶
func (j *JsonAnnotateImpl) DoForUnmarshalStr(ctx context.Context, jsonMap map[string]interface{}, cfg *jconf.JsonStrAction) (map[string]interface{}, error)
func (*JsonAnnotateImpl) JsonAnnotate ¶
func (j *JsonAnnotateImpl) JsonAnnotate(ctx context.Context, jsonMap map[string]interface{}, cfg *jconf.AnnotateConfig) (map[string]interface{}, error)
type NormalAnnotate ¶
type NormalAnnotate struct { }
func (*NormalAnnotate) DoNormalAnnotate ¶
func (e *NormalAnnotate) DoNormalAnnotate(ctx context.Context, jsonMap map[string]interface{}, cfg map[string]*jconf.AnnotateFmt) (map[string]interface{}, error)
type UnmarshalStr ¶
type UnmarshalStr struct { }
func (*UnmarshalStr) UnmarshalStr ¶
func (u *UnmarshalStr) UnmarshalStr(ctx context.Context, jsonMap map[string]interface{}, cfg *jconf.JsonStrAction) (map[string]interface{}, error)
Click to show internal directories.
Click to hide internal directories.