x

package
v1.1.31 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Rand = rand.New(rand.NewSource(time.Now().UnixNano()))

Functions

func BytesToString

func BytesToString(b []byte) string

func LocalIp

func LocalIp() (string, error)

func MustMarshal

func MustMarshal(v interface{}) []byte

func MustMarshalString

func MustMarshalString(v interface{}) string

func MustUnmarshal added in v1.0.6

func MustUnmarshal(b []byte, v interface{})

func NewUUID

func NewUUID() string

func NewXID added in v1.0.1

func NewXID() string

func RandInt

func RandInt(min, max int) int

func StringToBytes

func StringToBytes(s string) (b []byte)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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