jet

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Between

func Between(str, starting, ending string) string

取中间字符串

func DeleteSpace

func DeleteSpace(str string) string

func FistLower

func FistLower(str string) string

func FistUp

func FistUp(str string) string

大写 65-90 小写 97-122

func IsLowChar

func IsLowChar(c uint8) bool

是否是小写字母

func IsNumChar

func IsNumChar(c uint8) bool

是否是小写字母

func IsNumber

func IsNumber(num string) bool

func IsUpChar

func IsUpChar(c uint8) bool

大写 65-90 小写 97-122 是否是大写字母

func IsZero

func IsZero(obj interface{}) bool

go 1.13支持

func LongestCommonPrefix

func LongestCommonPrefix(strs []string) string

func LowChar

func LowChar(c uint8) uint8

func NewFuncMap

func NewFuncMap(f template.FuncMap) template.FuncMap

生成默认的模板处理函数

func RawWriter

func RawWriter(w io.Writer, b []byte)

func ToLine

func ToLine(src string) string

大写字母转为下划线格式

func ToLowerCamel

func ToLowerCamel(src string) string

ToLowerCamel 转为小驼峰格式

func ToMiddleLine

func ToMiddleLine(src string) string

大写字母转为下划线格式 中间

func ToUpperCamel

func ToUpperCamel(src string) string

ToUpperCamel 转为大驼峰格式

func Tpl

func Tpl(tpl []byte, data interface{}) (*bytes.Buffer, error)

func Trim

func Trim(str string) string

func UpChar

func UpChar(c uint8) uint8

Types

This section is empty.

Jump to

Keyboard shortcuts

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