text

package
v0.0.0-...-a626ee0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CharTypeASCII charType = "ascii"
	CharTypeUTF8           = "utf8"
	CharTypeUTF16          = "utf16"
	CharTypeGBK            = "gbk"
)

Variables

This section is empty.

Functions

func Bytes

func Bytes(src string) []byte

func IsBase64

func IsBase64(src string) bool

func IsEmail

func IsEmail(src string) bool

func IsHex

func IsHex(src string) bool

func IsIPV4

func IsIPV4(src string) bool

func IsIPV6

func IsIPV6(src string) bool

func IsLowerCase

func IsLowerCase(src string) bool

func IsSnakCase

func IsSnakCase(src string) bool

func IsURL

func IsURL(src string) bool

func IsUUID

func IsUUID(src string) bool

func IsUpperCase

func IsUpperCase(src string) bool

func Length

func Length(src string, tps ...charType) int

func MD5

func MD5(src []byte, salt ...[]byte) string

func NewCharType

func NewCharType(tp string) charType

func Sha1

func Sha1(src []byte, salt ...[]byte) string

func Sha256

func Sha256(src []byte, salt ...[]byte) string

func Sha512

func Sha512(src []byte, salt ...[]byte) string

func String

func String(bt []byte) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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