strutil

package
v0.2.32 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(ss []string, str string) bool

Contains determines whether the str is in the strs.

func Diff added in v0.2.32

func Diff(base, exclude []string) (result []string)

Diff Creates an slice of slice values not included in the other given slice.

func Find added in v0.2.32

func Find(ss []string, str string) int

func Remove added in v0.2.32

func Remove(ss []string, s string) (result []string)

Remove remove item from slice

func Reverse added in v0.2.32

func Reverse(s string) string

Reverse returns its argument string reversed rune-wise left to right.

func SubStr added in v0.2.32

func SubStr(s string, start, length int) string

SubStr 截取字符串

func ToBytes

func ToBytes(str string) []byte

ToBytes converts the specified str to a byte array.

func ToFloat64 added in v0.2.26

func ToFloat64(s string) (float64, error)

func ToInt added in v0.2.26

func ToInt(s string) (int, error)

func ToInt64 added in v0.2.26

func ToInt64(str string) (int64, error)

func ToStr

func ToStr(bytes []byte) string

ToStr converts the specified byte array to a string.

func Unique added in v0.2.32

func Unique(ss []string) (result []string)

Unique

Types

This section is empty.

Jump to

Keyboard shortcuts

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