strings

package
v0.7.16-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMemoryBytes

func GetMemoryBytes(memory string) (value int64, err error)

GetMemoryBytes 内存单位转换

func SplitIfContain

func SplitIfContain(str string, contains []string) ([]string, error)

func SubFileName

func SubFileName(s string) string

SubFileName 截取文件名称

func SubSlash

func SubSlash(str string) []string

SubSlash 分割slash

func TrimPrefixAndSuffix

func TrimPrefixAndSuffix(str, fix string) string

TrimPrefixAndSuffix = TrimPrefix & TrimSuffix

Types

This section is empty.

Jump to

Keyboard shortcuts

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