util

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assertion

func Assertion(data interface{}) interface{}

断言

func BytesToString

func BytesToString(b *[]byte) *string

func ExternalIP

func ExternalIP() (string, error)

func HostName

func HostName() string

获得本机名

func JsonToMap

func JsonToMap(data string) map[string]interface{}

json转map

func JsonToMapArray

func JsonToMapArray(data string) []map[string]interface{}

json转map数组

func Must

func Must(err error)

func RightAddPathPos

func RightAddPathPos(path string) string

检测并补全路径右边的反斜杠

Types

This section is empty.

Jump to

Keyboard shortcuts

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