commonfunc

package
v0.0.0-...-79d4ce6 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DynamicInvoke

func DynamicInvoke(object interface{}, methodName string, args ...interface{}) string

动态调用结构体的方法

func FormatMap

func FormatMap(field string, maps interface{})

func GetBetweenDates

func GetBetweenDates(sdate, edate string) []string

GetBetweenDates 根据开始日期和结束日期计算出时间段内所有日期

func GetCurrentPath

func GetCurrentPath() string

func JsonToMap

func JsonToMap(jsonStr string) interface{}

func MapToJson

func MapToJson(maps interface{}) string

func StructToJson

func StructToJson(obj interface{}) string

func StructToMap

func StructToMap(obj []interface{}) map[string]interface{}

结构体转字典

Types

This section is empty.

Jump to

Keyboard shortcuts

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