strings

package
v0.7.17-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 29, 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

type IPS

type IPS []string

func (IPS) Len

func (ip IPS) Len() int

func (IPS) Less

func (ip IPS) Less(i, j int) bool

func (IPS) Swap

func (ip IPS) Swap(i, j int)

Jump to

Keyboard shortcuts

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