text

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToString

func ToString(from any) (to string)

ToString 将任意类型转换为字符串

func ToStrings

func ToStrings(from ...any) (to []string)

ToStrings 将任意类型转换成字符串列表

Types

type Builder

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

func NewBuilder

func NewBuilder(items ...any) (builder *Builder)

NewBuilder 创建连写字符串

func (*Builder) Append

func (b *Builder) Append(item any) *Builder

func (*Builder) Bytes

func (b *Builder) Bytes() []byte

func (*Builder) String

func (b *Builder) String() string

type String added in v1.8.6

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

func NewString added in v1.8.6

func NewString(from string) *String

func (String) Split added in v1.8.6

func (s String) Split() *builder.Split

func (String) Switch added in v1.8.6

func (s String) Switch() *builder.Switch

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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