Documentation ¶
Index ¶
- func BSprintf(format string, a ...any) []byte
- func IsInTest() bool
- func PPrint(s ...string)
- func PPrintln(s ...string)
- func PSprint(s ...string) string
- func PSprintP(s ...string) string
- func Print(s ...string)
- func Println(s ...string)
- func Sprint(s ...string) string
- func Sprintf(format string, a ...any) string
- func Sprintln(s ...string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PSprint ¶ added in v1.32.0
The pooled Sprint method. Of course, you don't need to deal with it. Although pointers will be generated, they are automatically managed by the pool.
Oh, right. This PSprint is re-implemented, and its performance far exceeds the old PSprint.
func PSprintP ¶ added in v1.33.0
The pooled Sprint method. Of course, you don't need to deal with it. Although pointers will be generated, they are automatically managed by the pool.
Oh, right. This PSprint is re-implemented, and its performance far exceeds the old PSprint.
The difference from PSprint is that it uses unsafe to convert []byte to string. Although it returns an immutable value, it can get a huge performance improvement.
Types ¶
This section is empty.