diff --git a/bytes.go b/bytes.go index 3421686..0bde7f7 100644 --- a/bytes.go +++ b/bytes.go @@ -10,16 +10,20 @@ import ( // ToLowerBytes converts an ASCII byte slice to lower-case in-place. // -// Deprecated: use package "github.com/gofiber/utils/v2/bytes" and call bytes.UnsafeToLower. +// Deprecated: use [github.com/gofiber/utils/v2/bytes.UnsafeToLower] instead. // This wrapper keeps backward compatibility by mutating the provided slice. +// +//go:fix inline func ToLowerBytes(b []byte) []byte { return casebytes.UnsafeToLower(b) } // ToUpperBytes converts an ASCII byte slice to upper-case in-place. // -// Deprecated: use package "github.com/gofiber/utils/v2/bytes" and call bytes.UnsafeToUpper. +// Deprecated: use [github.com/gofiber/utils/v2/bytes.UnsafeToUpper] instead. // This wrapper keeps backward compatibility by mutating the provided slice. +// +//go:fix inline func ToUpperBytes(b []byte) []byte { return casebytes.UnsafeToUpper(b) } diff --git a/strings.go b/strings.go index 9b972b3..b947eaa 100644 --- a/strings.go +++ b/strings.go @@ -10,14 +10,18 @@ import ( // ToLower converts ascii string to lower-case. // -// Deprecated: use package "github.com/gofiber/utils/v2/strings" and call strings.ToLower. +// Deprecated: use [github.com/gofiber/utils/v2/strings.ToLower] instead. +// +//go:fix inline func ToLower(b string) string { return casestrings.ToLower(b) } // ToUpper converts ascii string to upper-case. // -// Deprecated: use package "github.com/gofiber/utils/v2/strings" and call strings.ToUpper. +// Deprecated: use [github.com/gofiber/utils/v2/strings.ToUpper] instead. +// +//go:fix inline func ToUpper(b string) string { return casestrings.ToUpper(b) }