File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,16 +10,20 @@ import (
1010
1111// ToLowerBytes converts an ASCII byte slice to lower-case in-place.
1212//
13- // Deprecated: use package " github.com/gofiber/utils/v2/bytes" and call bytes .UnsafeToLower.
13+ // Deprecated: use [ github.com/gofiber/utils/v2/bytes.UnsafeToLower] instead .
1414// This wrapper keeps backward compatibility by mutating the provided slice.
15+ //
16+ //go:fix inline
1517func ToLowerBytes (b []byte ) []byte {
1618 return casebytes .UnsafeToLower (b )
1719}
1820
1921// ToUpperBytes converts an ASCII byte slice to upper-case in-place.
2022//
21- // Deprecated: use package " github.com/gofiber/utils/v2/bytes" and call bytes .UnsafeToUpper.
23+ // Deprecated: use [ github.com/gofiber/utils/v2/bytes.UnsafeToUpper] instead .
2224// This wrapper keeps backward compatibility by mutating the provided slice.
25+ //
26+ //go:fix inline
2327func ToUpperBytes (b []byte ) []byte {
2428 return casebytes .UnsafeToUpper (b )
2529}
Original file line number Diff line number Diff line change @@ -10,14 +10,18 @@ import (
1010
1111// ToLower converts ascii string to lower-case.
1212//
13- // Deprecated: use package "github.com/gofiber/utils/v2/strings" and call strings.ToLower.
13+ // Deprecated: use [github.com/gofiber/utils/v2/strings.ToLower] instead.
14+ //
15+ //go:fix inline
1416func ToLower (b string ) string {
1517 return casestrings .ToLower (b )
1618}
1719
1820// ToUpper converts ascii string to upper-case.
1921//
20- // Deprecated: use package "github.com/gofiber/utils/v2/strings" and call strings.ToUpper.
22+ // Deprecated: use [github.com/gofiber/utils/v2/strings.ToUpper] instead.
23+ //
24+ //go:fix inline
2125func ToUpper (b string ) string {
2226 return casestrings .ToUpper (b )
2327}
You can’t perform that action at this time.
0 commit comments