Documentation
¶
Index ¶
- func FieldRequestIDFromContext(c *gin.Context, name ...string) zap.Field
- func FieldRequestIDFromHeader(c *gin.Context, name ...string) zap.Field
- func GetHostname() string
- func GetRequestIDFromContext(c *gin.Context) string
- func GetRequestIDFromHeaders(c *gin.Context) string
- func IntToStr(v int) string
- func StrToFloat32(str string) float32
- func StrToFloat32E(str string) (float32, error)
- func StrToFloat64(str string) float64
- func StrToFloat64E(str string) (float64, error)
- func StrToInt(str string) int
- func StrToIntE(str string) (int, error)
- func StrToUint32(str string) uint32
- func StrToUint32E(str string) (uint32, error)
- func StrToUint64(str string) uint64
- func StrToUint64E(str string) (uint64, error)
- func Uint64ToStr(v uint64) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FieldRequestIDFromContext ¶ added in v1.3.2
FieldRequestIDFromContext zap logger request ID from context
func FieldRequestIDFromHeader ¶ added in v1.3.2
FieldRequestIDFromHeader zap logger request ID from header
func GetRequestIDFromContext ¶ added in v1.3.2
GetRequestIDFromContext returns 'RequestID' from the given context if present.
func GetRequestIDFromHeaders ¶ added in v1.3.2
GetRequestIDFromHeaders returns 'RequestID' from the headers if present.
func StrToFloat32E ¶
StrToFloat32E string to float32 with error
func StrToFloat64E ¶
StrToFloat64E string to float64 with error
func StrToUint32E ¶
StrToUint32E string to uint32 with error
func StrToUint64E ¶
StrToUint64E string to uint64 with error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.