string

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SameCamelCaseName

func SameCamelCaseName(s string) string

转换为大驼峰写法, xx_yy to XxYy

func SnakeCasedName

func SnakeCasedName(s string) string

匈牙利命名法, 转换小写下划线, XxYy to xx_yy , XxYY to xx_y_y

func StrFirstToLower

func StrFirstToLower(str string) string

如果是大写字母, 则变换为小写字母

func StrFirstToUpper

func StrFirstToUpper(str string) string

如果是小写字母, 则变换为大写字母

func StrToFInt

func StrToFInt(value string) int

先尝试转浮点,然后再转整型

func StrToFInt64

func StrToFInt64(value string) int64

func StrToFloat

func StrToFloat(value string) float64

func StrToInt

func StrToInt(value string) int

func StrToIntBool

func StrToIntBool(value string) bool

取得整型值所表达的布尔类型 不同于golang提供的ParseBool

func StringToFloat64

func StringToFloat64(s string) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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