str

package
v0.0.0-...-28cd0dc Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func B2s

func B2s(b []byte) string

func BasePath

func BasePath() string

func ConvertByte2String

func ConvertByte2String(byte []byte) string

func ExistsFile

func ExistsFile(path string) (bool, error)

func GetBetweenStr

func GetBetweenStr(str, start, end string) string

func GetCurrentAbPath

func GetCurrentAbPath() string

最终方案-全兼容

func GetCurrentAbPathByCaller

func GetCurrentAbPathByCaller() string

获取当前执行文件绝对路径(go run)

func GetCurrentAbPathByExecutable

func GetCurrentAbPathByExecutable() string

获取当前执行文件绝对路径

func GetTmpDir

func GetTmpDir() string

获取系统临时目录,兼容go run

func Jsondiff

func Jsondiff(left, right string, ignoreColumn string) string

返回右边和左边不一样的文本

func Map2Json

func Map2Json(object map[string]interface{}) string

func MapList2Json

func MapList2Json(object []map[string]interface{}) string

func PathExists

func PathExists(path string) (bool, error)

func S2b

func S2b(s string) []byte

func Strval

func Strval(value interface{}) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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