Documentation ¶
Index ¶
- func CompareFold(s, t string) int
- func Concat(a ...string) string
- func Contains(a []string, s string) bool
- func CutLeft(s string, w int) string
- func CutRight(s string, w int) string
- func IsLower(s string) bool
- func IsUpper(s string) bool
- func Join(sep string, a ...string) string
- func JoinRepeat(s, sep string, count int) string
- func PadCenter(s string, c byte, w int) string
- func PadLeft(s string, c byte, w int) string
- func PadRight(s string, c byte, w int) string
- func PutBuilder(b *Builder)
- func Rename(name string, style NameStyle) string
- type Builder
- func (b *Builder) Bytes() []byte
- func (b *Builder) Len() int
- func (b *Builder) Reset() *Builder
- func (b *Builder) String() string
- func (b *Builder) Truncate(n int) *Builder
- func (b *Builder) Write(p []byte) (n int, err error)
- func (b *Builder) WriteByte(c byte) *Builder
- func (b *Builder) WriteFormat(format string, args ...interface{}) *Builder
- func (b *Builder) WriteString(s ...string) *Builder
- func (b *Builder) WriteStringer(s ...fmt.Stringer) *Builder
- type NameStyle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareFold ¶
CompareFold reports whether s and t, interpreted as UTF-8 strings, are equal under Unicode case-folding.
func JoinRepeat ¶
JoinRepeat if sep = "", should use strings.Repeat instead
func PutBuilder ¶
func PutBuilder(b *Builder)
Types ¶
type Builder ¶
Builder is used to efficiently build a string using Write methods. It minimizes memory copying. The zero value is ready to use.
func GetBuilder ¶
func GetBuilder() *Builder
func (*Builder) WriteFormat ¶
func (*Builder) WriteString ¶
Click to show internal directories.
Click to hide internal directories.