utils

package
v0.1.66 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPwd added in v0.1.10

func GetPwd() string

获取当前目录名称

func Index

func Index(slice []string, item string) int

Index returns the index where the item equal,it will return -1 if mismatched

func IsGoDataType

func IsGoDataType(dataType string) bool

判断是go的内置数据类型

func IsLowerCase

func IsLowerCase(r rune) bool

func IsUpperCase

func IsUpperCase(r rune) bool

func LowerFirst

func LowerFirst(s string) string

func TagLookup

func TagLookup(tag, key string) (value string, ok bool)

func Title

func Title(s string) string

Title returns a string value with s[0] which has been convert into upper case that there are not empty input text

func ToCamelCase

func ToCamelCase(s string) string

func ToLower

func ToLower(s string) string

func ToLowerCase

func ToLowerCase(r rune) rune

func ToSnakeCase

func ToSnakeCase(s string) string

func ToUpper

func ToUpper(s string) string

func ToUpperCase

func ToUpperCase(r rune) rune

func UnExport

func UnExport(text string) bool

func Untitle

func Untitle(s string) string

Untitle returns a string value with s[0] which has been convert into lower case that there are not empty input text

func UpperFirst

func UpperFirst(s string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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