strings

package
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBase64

func DecodeBase64(encoded string) string

DecodeBase64

func Default

func Default(v, defaultV string) string

Default return defaultV if v is empty

func EncodeBase64

func EncodeBase64(source []byte) string

EncodeBase64 return base64 string

func Explode

func Explode(str, separator string) []string

Explode split string with separator

func Hash

func Hash(s string) string

Hash return hash string

func Implode

func Implode(separator string, items interface{}) string

Implode concat items by the given separator

func Md5

func Md5(s string) string

Md5 return the encrypt string by md5 algorithm

func ToBool

func ToBool(b string) bool

ToBool check bool string

func ToInt added in v0.8.0

func ToInt(s string) int

ToInt return int of number string

func UUID

func UUID() string

UUID return unique id

Types

This section is empty.

Jump to

Keyboard shortcuts

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