util

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Duration2Millis

func Duration2Millis(duration time.Duration) int64

func GetLocalhostIP

func GetLocalhostIP() (ip net.IP, err error)

func IP2HexString

func IP2HexString(ip net.IP) string

func IP2String

func IP2String(ip net.IP) string

func NewStacktrace added in v1.0.4

func NewStacktrace(skip int, err error) (buf *bytes.Buffer)

func NextId

func NextId(domain string, IPHex string) string

Types

type IDer

type IDer struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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