utils

package
v1.6.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFileToZip

func AddFileToZip(zipWriter *zip.Writer, filename string) error

func CopyFile

func CopyFile(src string, dest string) (int64, error)

func EnsurePath

func EnsurePath(path string)

func Find

func Find(slice []string, val string) (int, bool)

func FindRelatedFiles

func FindRelatedFiles(path string, replace string) (relatedFiles []string, newFiles []string)

func GetFieldName

func GetFieldName(tag, key string, s interface{}) string

func Map2String

func Map2String(m map[string]string) string

func Partition

func Partition(s string, sep string) (string, string, string)

func RandomString

func RandomString(n int) string

func ReadFileLines

func ReadFileLines(path string) ([]string, error)

func RunFrpClient added in v1.6.1

func RunFrpClient(c string)

func String2Map

func String2Map(s string) map[string]string

func TryAlterFile

func TryAlterFile(f1 string, f2 string, rename bool)

func ZipFiles

func ZipFiles(filename string, files []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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