str

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelToSnake added in v0.0.32

func CamelToSnake(s string) string

CamelToSnake 将驼峰格式转换为下划线格式

func CharLength

func CharLength(str string) int

CharLength 返回字符串的字符长度

func HasText

func HasText(str string) bool

HasText 检查是否具有有意义的内容

func IsCamelCase added in v0.0.32

func IsCamelCase(s string) bool

IsCamelCase 判断是否是驼峰格式

func IsSnakeCase added in v0.0.32

func IsSnakeCase(s string) bool

IsSnakeCase 是否为下划线格式

func LowFirstChar added in v0.0.17

func LowFirstChar(value string) string

LowFirstChar 首字母小写

func SnakeToCamel added in v0.0.32

func SnakeToCamel(s string) string

SnakeToCamel 下划线转驼峰

func Substring

func Substring(str string, start int, end ...int) string

Substring 字符串截取指定长度 包含start下标,不含end下标

func UpFirstChar added in v0.0.32

func UpFirstChar(value string) string

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(str ...string) *Builder

NewBuilder 创建一个StringBuilder

func (*Builder) ToString

func (b *Builder) ToString() string

func (*Builder) WriteByte

func (b *Builder) WriteByte(byte byte) *Builder

func (*Builder) WriteBytes

func (b *Builder) WriteBytes(bytes []byte) *Builder

func (*Builder) WriteRune

func (b *Builder) WriteRune(r rune) *Builder

func (*Builder) WriteString

func (b *Builder) WriteString(str string) *Builder

Jump to

Keyboard shortcuts

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