Documentation
¶
Index ¶
- Variables
- func Add(y, x int) int
- func ContainsString(collection []string, element string) bool
- func Copy(dstFile string, src io.Reader) (written int64, err error)
- func CopyFile(src, dist string) error
- func Exec(cmd string, args ...string)
- func FirstLower(str string) string
- func FirstUpper(str string) string
- func GonicCase(str string) string
- func IsFileOrDirExist(f string) (bool, error)
- func IsIDEmpty(id interface{}) bool
- func IsLastIndex(idx int, s any) bool
- func KebabCase(s string) string
- func LineString(str string) string
- func Lookup(filename string, tier int) (path string, err error)
- func ReadJSONFile(f string, data any) error
- func SnakeCase(str string) string
- func Sub(y, x int) int
- func TitleCase(str string) string
- func ToLowerAndTrim(s string) string
- func ToString(src interface{}) string
- func Unzip(src, dir string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var LintGonicMapper = map[string]bool{ "API": true, "ASCII": true, "CPU": true, "CSS": true, "DNS": true, "EOF": true, "GUID": true, "HTML": true, "HTTP": true, "HTTPS": true, "ID": true, "IP": true, "JSON": true, "LHS": true, "QPS": true, "RAM": true, "RHS": true, "RPC": true, "SLA": true, "SMTP": true, "SSH": true, "TLS": true, "TTL": true, "UI": true, "UID": true, "UUID": true, "URI": true, "URL": true, "UTF8": true, "VM": true, "XML": true, "XSRF": true, "XSS": true, }
Functions ¶
func ContainsString ¶
func LineString ¶
func ToLowerAndTrim ¶ added in v1.1.0
ToLowerAndTrim 将字符串转换为小写,并移除特殊字符(如 - 和 _)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.