mirror of https://github.com/gofiber/fiber.git
22 lines
551 B
Go
22 lines
551 B
Go
// ⚡️ Fiber is an Express inspired web framework written in Go with ☕️
|
|
// 🤖 Github Repository: https://github.com/gofiber/fiber
|
|
// 📌 API Documentation: https://docs.gofiber.io
|
|
|
|
package utils
|
|
|
|
// ToLowerBytes converts ascii slice to lower-case in-place.
|
|
func ToLowerBytes(b []byte) []byte {
|
|
for i := 0; i < len(b); i++ {
|
|
b[i] = toLowerTable[b[i]]
|
|
}
|
|
return b
|
|
}
|
|
|
|
// ToUpperBytes converts ascii slice to upper-case in-place.
|
|
func ToUpperBytes(b []byte) []byte {
|
|
for i := 0; i < len(b); i++ {
|
|
b[i] = toUpperTable[b[i]]
|
|
}
|
|
return b
|
|
}
|