buffer

package
v2.9.4 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer interface {
	GetOriginal() *bytes.Buffer
	JoinString(strings ...string) string
	JoinStringLimit(limit string, strings ...string) string
	JoinAny(values ...any) string
	JoinAnyLimit(limit string, values ...any) string
	NewString(data ...string) Buffer
	NewBytes(original []byte) Buffer
	NewRune(data ...rune) Buffer
	NewAny(data ...any) Buffer
	Any(values ...any) Buffer
	URLPath(values ...string) Buffer
	URLQuery(values ...string) Buffer

	S(values ...string) Buffer
	WhenS(condition bool, values ...string) Buffer

	B(values ...byte) Buffer
	WhenB(condition bool, values ...byte) Buffer

	R(values ...rune) Buffer
	WhenR(condition bool, values ...rune) Buffer
	String() string
	Bytes() []byte
	Ptr() *string
	Sha256Sum256() string
	Copy() Buffer
	// contains filtered or unexported methods
}

type BufferImpl

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

func (BufferImpl) Any

func (my BufferImpl) Any(values ...any) Buffer

Any 追加任意内容到字符串

func (BufferImpl) B

func (my BufferImpl) B(values ...byte) Buffer

B 追加写入字节

func (BufferImpl) Bytes

func (my BufferImpl) Bytes() []byte

Bytes 获取字节码

func (BufferImpl) Copy

func (my BufferImpl) Copy() Buffer

Copy 复制当前对象

func (BufferImpl) GetOriginal

func (my BufferImpl) GetOriginal() *bytes.Buffer

func (BufferImpl) JoinAny

func (BufferImpl) JoinAny(values ...any) string

func (BufferImpl) JoinAnyLimit

func (BufferImpl) JoinAnyLimit(limit string, values ...any) string

func (BufferImpl) JoinString

func (BufferImpl) JoinString(strings ...string) string

func (BufferImpl) JoinStringLimit

func (BufferImpl) JoinStringLimit(limit string, strings ...string) string

func (BufferImpl) NewAny

func (BufferImpl) NewAny(data ...any) Buffer

func (BufferImpl) NewBytes

func (BufferImpl) NewBytes(original []byte) Buffer

NewBytes 实例化:通过字节码

func (BufferImpl) NewRune

func (BufferImpl) NewRune(data ...rune) Buffer

NewRune 实例化:通过字符

func (BufferImpl) NewString

func (BufferImpl) NewString(data ...string) Buffer

NewString 实例化:通过字符串

func (BufferImpl) Ptr

func (my BufferImpl) Ptr() *string

Ptr 获取字符串指针

func (BufferImpl) R

func (my BufferImpl) R(values ...rune) Buffer

R 追加写入字符

func (BufferImpl) S

func (my BufferImpl) S(values ...string) Buffer

S 追加写入字符串

func (BufferImpl) Sha256Sum256

func (my BufferImpl) Sha256Sum256() string

func (BufferImpl) String

func (my BufferImpl) String() string

String 获取字符串

func (BufferImpl) URLPath

func (my BufferImpl) URLPath(values ...string) Buffer

URLPath 字符串 -> 追加写入 URL 路径

func (BufferImpl) URLQuery

func (my BufferImpl) URLQuery(values ...string) Buffer

URLQuery 字符串 -> 追加写入 URL 查询

func (BufferImpl) WhenB

func (my BufferImpl) WhenB(condition bool, values ...byte) Buffer

func (BufferImpl) WhenR

func (my BufferImpl) WhenR(condition bool, values ...rune) Buffer

func (BufferImpl) WhenS

func (my BufferImpl) WhenS(condition bool, values ...string) Buffer

Jump to

Keyboard shortcuts

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