Documentation ¶
Index ¶
- func BaseConvert(number int, fromBase int8, toBase int8) (string, error)
- func DateStrToTime(v string) time.Time
- func DateTimeStrToTime(v string) time.Time
- func FormatDurationToStr(d int64) string
- func FormatFloat(num float64, decimal int) string
- func FormatTimeToString(t int32) string
- func HTTPGet(uri string) ([]byte, error)
- func HTTPPost(uri string, data string) ([]byte, error)
- func InArray(val interface{}, list interface{}) bool
- func P(vals ...interface{})
- func PMap(location int, val map[string]interface{})
- func PP(location int, val interface{})
- func PostFile(fieldname, filename, uri string) ([]byte, error)
- func PostJSON(uri string, obj interface{}) ([]byte, error)
- func PostJSONWithRespContentType(uri string, obj interface{}) ([]byte, string, error)
- func PostMultipartForm(fields []MultipartFormField, uri string) (respBody []byte, err error)
- func PostXML(uri string, obj interface{}) ([]byte, error)
- func PostXMLWithTLS(uri string, obj interface{}, ca, key string) ([]byte, error)
- func PriceDbToExport(dbPrice int32) (resPrice string)
- func PriceExportToDb(exportPrice string) int32
- func ScoreDbToExport(score int32) string
- func StrToTimeInt(v string) int64
- func TimeIntToDateTimeStr(t int64) string
- func TimeToDate(t time.Time) string
- func TimeToDateTime(t time.Time) string
- func TimeToExportWeekDay(t time.Time) string
- func Val2int(val interface{}) int
- func Val2int64(val interface{}) int64
- func Val2string(val interface{}) string
- type MultipartFormField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BaseConvert ¶
BaseConvert TODO
func DateStrToTime ¶
func DateTimeStrToTime ¶
func FormatDurationToStr ¶
func FormatFloat ¶
func PostJSONWithRespContentType ¶
PostJSONWithRespContentType post json数据请求,且返回数据类型
func PostMultipartForm ¶
func PostMultipartForm(fields []MultipartFormField, uri string) (respBody []byte, err error)
PostMultipartForm 上传文件或其他多个字段
func PostXMLWithTLS ¶
PostXMLWithTLS perform a HTTP/POST request with XML body and TLS
func PriceDbToExport ¶
func PriceExportToDb ¶
func ScoreDbToExport ¶
func StrToTimeInt ¶
func TimeIntToDateTimeStr ¶
func TimeToDateTime ¶
func Val2string ¶
func Val2string(val interface{}) string
Types ¶
Click to show internal directories.
Click to hide internal directories.