str

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CharLength

func CharLength(str string) int

CharLength 返回字符串的字符长度

func HasText

func HasText(str string) bool

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

func LowFirstChar added in v0.0.17

func LowFirstChar(value string) string

LowFirstChar 首字母小写

func Substring

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

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

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