Documentation ¶
Overview ¶
*
- Copyright 2015 @ 56x.net.
- name : category
- author : jarryliu
- date : -- :
- description :
- history :
*
- Copyright 2015 @ 56x.net.
- name : format
- author : jarryliu
- date : 2016-05-23 19:42
- description :
- history :
*
- Copyright 2014 @ 56x.net.
- name :
- author : jarryliu
- date : 2014-02-11 21:15
- description :
- history :
*
- Copyright 2015 @ 56x.net.
- name : time
- author : jarryliu
- date : 2015-11-07 22:52
- description :
- history :
Index ¶
- Variables
- func DecimalToString(f float64) string
- func FixedDecimal(amount float64) float64
- func FixedDecimalN(amount float64, n int) float64
- func FormatFloat(f float32) string
- func FormatFloat64(f float64) string
- func FormatIntMoney(amount int64) string
- func GetFileFullUrl(url string) string
- func GetGender(gender int32) string
- func GetGoodsImageUrl(image string) string
- func GetName(url string) string
- func GetNoPicPath() string
- func HanDateTime(t time.Time) string
- func HanUnixDateTime(unix int64) string
- func I32ArrStrJoin(ids []int32) string
- func I64ArrStrJoin(ids []int64) string
- func IntArrStrJoin(ids []int) string
- func IntToFloatAmount(i int) string
- func MaskNickname(nickname string) string
- func RoundAmount(amount float32) float32
- func ToDiscountStr(discount int) string
- func UnixTimeStr(unix int64) string
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalFileServerPath = ""
静态文件服务器路径
Functions ¶
func DecimalToString ¶
func FormatFloat ¶
func FormatFloat64 ¶
func GetFileFullUrl ¶ added in v0.4.10
GetFileFullUrl 获取完整的文件地址
func HanDateTime ¶
func HanUnixDateTime ¶
func I32ArrStrJoin ¶
func I64ArrStrJoin ¶
func IntToFloatAmount ¶
func RoundAmount ¶
func ToDiscountStr ¶
func UnixTimeStr ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.