Documentation
¶
Index ¶
- type Buffer
- type BufferImpl
- func (my BufferImpl) Any(values ...any) Buffer
- func (my BufferImpl) B(values ...byte) Buffer
- func (my BufferImpl) Bytes() []byte
- func (my BufferImpl) Copy() Buffer
- func (my BufferImpl) GetOriginal() *bytes.Buffer
- func (BufferImpl) JoinAny(values ...any) string
- func (BufferImpl) JoinAnyLimit(limit string, values ...any) string
- func (BufferImpl) JoinString(strings ...string) string
- func (BufferImpl) JoinStringLimit(limit string, strings ...string) string
- func (BufferImpl) NewAny(data ...any) Buffer
- func (BufferImpl) NewBytes(original []byte) Buffer
- func (BufferImpl) NewRune(data ...rune) Buffer
- func (BufferImpl) NewString(data ...string) Buffer
- func (my BufferImpl) Ptr() *string
- func (my BufferImpl) R(values ...rune) Buffer
- func (my BufferImpl) S(values ...string) Buffer
- func (my BufferImpl) Sha256Sum256() string
- func (my BufferImpl) String() string
- func (my BufferImpl) URLPath(values ...string) Buffer
- func (my BufferImpl) URLQuery(values ...string) Buffer
- func (my BufferImpl) WhenB(condition bool, values ...byte) Buffer
- func (my BufferImpl) WhenR(condition bool, values ...rune) Buffer
- func (my BufferImpl) WhenS(condition bool, values ...string) Buffer
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) 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) NewString ¶
func (BufferImpl) NewString(data ...string) Buffer
NewString 实例化:通过字符串
func (BufferImpl) Sha256Sum256 ¶
func (my BufferImpl) Sha256Sum256() 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 查询
Click to show internal directories.
Click to hide internal directories.