gstr

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KB
	MB
	GB
	TB
	PB
	EB
)

Variables

This section is empty.

Functions

func FormatHumanBytes

func FormatHumanBytes(b int64) string

FormatHumanBytes wraps gHumanBytes Bytes's Format function.

func IfEmpty

func IfEmpty(a, b string) string

IfEmpty ...

func IsChinese

func IsChinese(str string) bool

IsChinese ...

func IsChineseLetterNumUnline

func IsChineseLetterNumUnline(str string) bool

IsChineseLetterNumUnline ...

func IsDigit

func IsDigit(str string) bool

IsDigit ...

func IsEmail

func IsEmail(str string) bool

IsEmail ...

func IsEmailRFC

func IsEmailRFC(str string) bool

IsEmailRFC ...

func IsLetterNumUnline

func IsLetterNumUnline(str string) bool

IsLetterNumUnline ...

func IsURL

func IsURL(str string) bool

IsURL ...

func JoinInts

func JoinInts(is []int64) string

JoinInts format int64 slice like:n1,n2,n3.

func ParseHumanBytes

func ParseHumanBytes(val string) (int64, error)

ParseHumanBytes wraps gHumanBytes Bytes's Parse function.

func SplitInts

func SplitInts(s string) ([]int64, error)

SplitInts split string into int64 slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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