3 Commits
Author SHA1 Message Date
hopehook a889c58de7 Convert strings and slices using the officially recommended way (#3344)
* Feat: Convert strings and slices using the officially recommended way.

Go official is expected to provide unsafe.{SliceData, Slice, StringData,
String} series methods in version 1.20 for conversion of strings and
slices.

* chore: add reference documentation link to comment of code

* chore: update Copyright

* chore: remove build tag "+build !go1.20"
2023-03-02 08:12:20 +08:00
hopehook b2d4185eec Replace bytes.Buffer with strings.Builder where appropriate (#3347)
To build strings more efficiently, use strings.Builder instead.
2023-01-20 09:51:42 +08:00
hopehook 33ab0fc155 refactor(struct): Remove redundant type conversions (#3345) 2022-10-16 09:49:24 +08:00