utils

package
v0.0.0-...-2ec385b Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float642String

func Float642String(val float64) string

Float642String convert float64 to string

func GenerateWorkerID

func GenerateWorkerID() uint32

GenerateWorkerID generate a new work id for LB worker

func GetContextIP

func GetContextIP(ctx context.Context) (string, error)

GetContextIP get the IP of context

func Int2String

func Int2String(val int) string

Int2String convert int to string

func Int322String

func Int322String(val int32) string

Int322String convert int32 to string

func Int642String

func Int642String(val int64) string

Int642String convert int64 to string

func String2Int

func String2Int(val string) int

String2Int convert string to int

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL