utils

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConcatString

func ConcatString(s ...string) string

ConcatString 连接字符串 NOTE: 性能比fmt.Sprintf和+号要好

func ConcatStringBySlash

func ConcatStringBySlash(s ...string) string

ConcatStringBySlash concat string by slash

func EscapeQuote

func EscapeQuote(str string) string

EscapeQuote escape the string the single quote, double quote, and backtick

func GetWorkDir

func GetWorkDir() string

GetWorkDir return the current working directory

func IsEmpty

func IsEmpty(s string) bool

IsEmpty 是否是空字符串

func MakeDirectory

func MakeDirectory(filename string) string

MakeDirectory return the writeable filename

func StringToInt

func StringToInt(str string) (int, error)

StringToInt 字符串转int

func StringToInt64

func StringToInt64(str string) (int64, error)

StringToInt64 字符串转int64

func StringToUint64

func StringToUint64(str string) (uint64, error)

StringToUint64 字符串转uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

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