utils

package
v0.0.0-...-65ee0f0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsLetter

func IsLetter(b byte) bool

IsLetter check character is a letter or not

func IsLower

func IsLower(b byte) bool

IsLower check letter is lower case or not

func IsSpace

func IsSpace(b byte) bool

IsSpace only call unicode.IsSpace

func IsSpaceQuote

func IsSpaceQuote(b byte) bool

IsSpaceQuote return wehter a byte is space or quote characters

func IsUpper

func IsUpper(b byte) bool

IsUpper check letter is upper case or not

func ToAbridge

func ToAbridge(str string) string

ToAbridge extract first letter and all upper case letter from string as it's abridge case

func ToCamel

func ToCamel(s string) string

ToCamel string, xx_yy to XxYy, xx__yy to Xx_Yy xx _yy to Xx Yy, the rule is that a lower case letter after '_' will combine to a upper case letter

func ToLower

func ToLower(b byte) byte

ToLower convert a byte to lower case

func ToLowerAbridge

func ToLowerAbridge(str string) (s string)

ToLowerAbridge extract first letter and all upper case letter from string as it's abridge case, and convert it to lower case

func ToLowerString

func ToLowerString(b byte) string

ToLowerString convert a byte to lower case string

func ToSnake

func ToSnake(s string) string

ToSnake string, XxYy to xx_yy, X_Y to x_y

func ToUpper

func ToUpper(b byte) byte

ToUpper convert a byte to upper case

func ToUpperString

func ToUpperString(b byte) string

ToUpperString convert a byte to upper case string

Types

This section is empty.

Jump to

Keyboard shortcuts

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