utils

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes2String

func Bytes2String(b []byte) string

Bytes2String 将字节切片转换为字符串

func ExecTimeDiff

func ExecTimeDiff(fn func()) float64

ExecTimeDiff 返回函数执行用时(s)

func IP2long

func IP2long(ipStr string) uint32

func IsLinux

func IsLinux() bool

func IsNumeric

func IsNumeric(input string) bool

IsNumeric 返回字符串是否是数字

func IsWindows

func IsWindows() bool

func Long2IP

func Long2IP(ipLong uint32) string

func ReverseString

func ReverseString(s string) string

func Str2bytes

func Str2bytes(s string) []byte

Str2bytes 将字符串转换为字节切片

Types

This section is empty.

Jump to

Keyboard shortcuts

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