utils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func IPDesensitize

func IPDesensitize(ipAddr string) string

func IsDirEmpty

func IsDirEmpty(name string) (bool, error)

func IsWindows

func IsWindows() bool

func MD5

func MD5(plantext string) string

func NewSingleStackHTTPClient

func NewSingleStackHTTPClient(httpTimeout, dialTimeout, keepAliveTimeout time.Duration, ipv6 bool) *http.Client

func RandStringBytesMaskImprSrcUnsafe

func RandStringBytesMaskImprSrcUnsafe(n int) string

func SplitIPAddr

func SplitIPAddr(v4v6Bundle string) (string, string, string)

SplitIPAddr 传入/分割的v4v6混合地址,返回v4和v6地址与有效地址

Types

This section is empty.

Jump to

Keyboard shortcuts

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