string

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Camel2Snake

func Camel2Snake(s string) string

func DecodeByBase64

func DecodeByBase64(target string) (string, error)

func EncodeByBase64

func EncodeByBase64(target string) string

func FirstLower

func FirstLower(s string) string

func FirstUpper

func FirstUpper(s string) string

func FromBytes

func FromBytes(b []byte) string

func Match

func Match(s string, pattern string) (bool, error)

func Rand

func Rand() string

Rand returns a random string.

func RandId

func RandId() string

RandId returns a random id string.

func Randn

func Randn(n int) string

Randn returns a random string with length n.

func Seed

func Seed(seed int64)

Seed sets the seed to seed.

func Snake2Camel

func Snake2Camel(s string) string

func ToBool

func ToBool(s string) (bool, error)

ToBool convert string to a boolean

func ToBytes

func ToBytes(s string) []byte

func ToChar

func ToChar(s string) []string

ToChar convert string to char slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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