helper

package
v0.0.0-...-784514d Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RequestIdKey = "X-Oneapi-Request-Id"
)

Variables

This section is empty.

Functions

func AssignOrDefault

func AssignOrDefault(value string, defaultValue string) string

func Bytes2Size

func Bytes2Size(num int64) string

func GenRequestID

func GenRequestID() string

func GetIp

func GetIp() (ip string)

func GetResponseID

func GetResponseID(c *gin.Context) string

func GetTimeString

func GetTimeString() string

func GetTimestamp

func GetTimestamp() int64

func IntMax

func IntMax(a int, b int) int

func Interface2String

func Interface2String(inter interface{}) string

func Max

func Max(a int, b int) int

func MessageWithRequestId

func MessageWithRequestId(message string, id string) string

func OpenBrowser

func OpenBrowser(url string)

func String2Int

func String2Int(str string) int

func UnescapeHTML

func UnescapeHTML(x 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