Documentation ¶
Index ¶
- Constants
- func AssignOrDefault(value string, defaultValue string) string
- func Bytes2Size(num int64) string
- func GenRequestID() string
- func GetIp() (ip string)
- func GetResponseID(c *gin.Context) string
- func GetTimeString() string
- func GetTimestamp() int64
- func IntMax(a int, b int) int
- func Interface2String(inter interface{}) string
- func Max(a int, b int) int
- func MessageWithRequestId(message string, id string) string
- func OpenBrowser(url string)
- func String2Int(str string) int
- func UnescapeHTML(x string) interface{}
Constants ¶
View Source
const (
RequestIdKey = "X-Oneapi-Request-Id"
)
Variables ¶
This section is empty.
Functions ¶
func AssignOrDefault ¶
func Bytes2Size ¶
func GenRequestID ¶
func GenRequestID() string
func GetResponseID ¶
func GetTimeString ¶
func GetTimeString() string
func GetTimestamp ¶
func GetTimestamp() int64
func Interface2String ¶
func Interface2String(inter interface{}) string
func MessageWithRequestId ¶
func OpenBrowser ¶
func OpenBrowser(url string)
func String2Int ¶
func UnescapeHTML ¶
func UnescapeHTML(x string) interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.