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"
This commit is contained in:
hopehook
2023-03-02 08:12:20 +08:00
committed by GitHub
parent de1c4ec546
commit a889c58de7
3 changed files with 26 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
module github.com/gin-gonic/gin
go 1.18
go 1.20
require (
github.com/bytedance/sonic v1.8.2