helper

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareVersion added in v0.1.0

func CompareVersion(version1, version2 string) int

CompareVersion 版本号对比 两版本相同时返回0, version1 > version2时返回1, version1 < version2时返回-1

func Copy added in v0.1.0

func Copy(src string, dest string) error

Copy copies from src to dest

func HideSecret

func HideSecret(secret string, count uint32) string

HideSecret 隐藏字符串的中间字符

func InArray

func InArray(target interface{}, array interface{}) bool

InArray 判断目标是否存在于数组当中

func Unarchive added in v0.1.0

func Unarchive(src string, dest string) error

Unarchive 解压缩tgz压缩包

Types

This section is empty.

Jump to

Keyboard shortcuts

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