Documentation ¶
Index ¶
- func FormatAnyWithMap(obj any, msgMap *map[string]string) any
- func FormatInterfaceWithMap(value reflect.Value, msgMap *map[string]string) reflect.Value
- func FormatMapWithMap(value reflect.Value, msgMap *map[string]string) reflect.Value
- func FormatSliceWithMap(value reflect.Value, msgMap *map[string]string) reflect.Value
- func FormatStringWithMap(value string, msgMap *map[string]string) string
- func FormatStructWithMap(value reflect.Value, msgMap *map[string]string) reflect.Value
- func FormatValueWithMap(value reflect.Value, msgMap *map[string]string) reflect.Value
- func GenerateMap(keys []string, values []string) map[string]string
- func HmacSha256(data string, secret string) string
- func OutputString(content string)
- func ReadFromYaml(path string, target any) error
- func StructToDict(obj any) ext.Dict
- func StructToJson(obj any) map[string]any
- func ValueToString(obj reflect.Value) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatAnyWithMap ¶
FormatAnyWithMap 传入指针
func FormatInterfaceWithMap ¶
func FormatMapWithMap ¶
func FormatSliceWithMap ¶
func FormatStructWithMap ¶
func FormatValueWithMap ¶
func HmacSha256 ¶
func OutputString ¶
func OutputString(content string)
func ReadFromYaml ¶
func StructToDict ¶
StructToDict 需要结构体字段Tag设置为 `dict:"目标键名"` 或 `dict:"目标键名,omitempty"` 如 Text string `dict:"text,omitempty"`
func StructToJson ¶
StructToJson 需要结构体字段Tag设置为 `json:"目标键名"` 或 `json:"目标键名,omitempty"` 如 Text string `json:"text,omitempty"`
func ValueToString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.