strings

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Capitalize

func Capitalize(str string) string

Capitalize make first letter to upper Source https://www.cnblogs.com/Detector/p/9686443.html

func IsCapitalize

func IsCapitalize(s string) bool

IsCapitalize whether the first letter is upper

func IsNumber

func IsNumber(str string) bool

IsNumber determine if it is a pure numeric string

func Rand

func Rand(size int) (string, error)

Rand generate rand string with bytes size

func Remove

func Remove(s, old string) string

Remove remove all old from s

func RemoveEmpties

func RemoveEmpties(s string) string

RemoveEmpties move all empties

func SplitToChunks

func SplitToChunks(s string, chunkSize int) []string

SplitToChunks Split large string in n-size chunks

Types

This section is empty.

Jump to

Keyboard shortcuts

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