str

package
v0.0.0-...-057734e Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Letters && Numbers
	FLG_ALL randomFlag = iota
	// Only Letters
	FLG_LETTER
	// Only Numbers
	FLG_NUMBER
)

Variables

This section is empty.

Functions

func Camel

func Camel(s string) string

Camel 转为 CamelCase,如 topic_comment -> TopicComment

func LowerCamel

func LowerCamel(s string) string

LowerCamel 转为 lowerCamelCase,如 TopicComment -> topicComment

func Plural

func Plural(word string) string

Plural 转为复数 user -> users

func Random

func Random(length int, flg ...randomFlag) (ret string)

func Singular

func Singular(word string) string

Singular 转为单数 users -> user

func Snake

func Snake(s string) string

Snake 转为 snake_case,如 TopicComment -> topic_comment

Types

This section is empty.

Jump to

Keyboard shortcuts

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