Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions bytes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
8 changes: 6 additions & 2 deletions strings.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down