Documentation ¶
Overview ¶
*
- Project Name:wechat-robot
- File Name:signs.go
- Package Name:utils
- Date:2019年07月16日 14:36
- Function:
- Copyright (c) 2019, Jason.Wang All Rights Reserved.
Index ¶
- func FlatMap(prefix string, mapData map[string]interface{}) map[string]interface{}
- func Format(time *time.Time, format string) string
- func FormatS(time time.Time, format string) string
- func Get(url string, params map[string]string) ([]byte, error)
- func GetFilePath(fileName string) string
- func GetSign(srcdata interface{}, bizkey string) string
- func GetSignEncode(srcdata interface{}, bizkey string) string
- func GetSignEncodeToUpper(srcdata interface{}, bizkey string) string
- func GetTodayTime() time.Time
- func GetTodayYM(sep string) string
- func GetTodayYMD(sep string) string
- func GetTomorrowYMD(sep string) string
- func GetYesterdayTime() time.Time
- func GetYesterdayYMD(sep string) string
- func ParseTpl(tpl string, data map[string]interface{}) string
- func Post(url string, params map[string]string) ([]byte, error)
- func PostBody(url string, data []byte) ([]byte, error)
- func PostFile(uri string, params map[string]string, paramName, path string) (*http.Request, error)
- func SetStructByJSON(obj interface{}, mapData map[string]interface{}) error
- func Split(val string, sep string) []string
- func StrToIntMonth(month string) int
- func Struct2Map(content interface{}) map[string]string
- func Struct2map(content interface{}, bizKey string) string
- func Struct2mapEncode(content interface{}, bizKey string) string
- func TimeFromExcelTime(excelTime float64, date1904 bool) time.Time
- func ValidateGetUrl(ctx *gin.Context, token string) bool
- func ValidateUrl(ctx *gin.Context, token string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFilePath ¶
func GetSignEncode ¶
func GetSignEncodeToUpper ¶
func GetYesterdayYMD ¶
GetYesterdayYMD 得到以sep为分隔符的年、月、日字符串(昨天)
func SetStructByJSON ¶
SetStructByJSON 由json对象生成 struct
func Struct2Map ¶
func Struct2map ¶
func Struct2mapEncode ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.