lib

package module
v0.0.0-...-62f5189 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: MIT Imports: 4 Imported by: 0

README

lib

go library

lru

log

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ExternalIPv4 get public ipv4
	ExternalIPv4 = ip.ExternalV4

	// InternalIPv4 get local ipv4
	InternalIPv4 = ip.InternalV4

	// IPAtoI ip string to int
	IPAtoI = ip.AtoI

	// IPItoA ip int to string
	IPItoA = ip.ItoA
)

network

View Source
var (

	// OK assert and fatal
	OK = assert.OK

	// Equal a == b
	Equal = assert.Equal

	// DeepEqual a deepequal b
	DeepEqual = assert.DeepEqual
)

assert

View Source
var (

	// ExitGrace exec callback functions before exit (SIGINT/SIGQUIT/SIGTERM)
	ExitGrace = sys.ExitGrace

	// Recover recover panic and log
	Recover = sys.Recover
)

sys

View Source
var (
	// Retry retry when there is error
	Retry = retry.Do
)

Functions

This section is empty.

Types

type Language

type Language string
const (
	LangZhCN    Language = "zh-cn"
	LangZhTW    Language = "zh-tw"
	LangZhHK    Language = "zh-hk"
	LangEnUS    Language = "en-us"
	LangJaJP    Language = "ja-jp"
	LangDefault Language = LangZhCN
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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