text

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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