// ⚡️ Fiber is an Express inspired web framework written in Go with ☕️// 🤖 Github Repository: https://github.com/gofiber/fiber// 📌 API Documentation: https://docs.gofiber.iopackage utils// ToLower converts ascii string to lower-casefunc ( string) string { := make([]byte, len())copy(, )for := 0; < len(); ++ { [] = toLowerTable[[]] }returnUnsafeString()}// ToUpper converts ascii string to upper-casefunc ( string) string { := make([]byte, len())copy(, )for := 0; < len(); ++ { [] = toUpperTable[[]] }returnUnsafeString()}// TrimLeft is the equivalent of strings.TrimLeftfunc ( string, byte) string { , := len(), 0for < && [] == { ++ }return [:]}// Trim is the equivalent of strings.Trimfunc ( string, byte) string { , := 0, len()-1for ; <= ; ++ {if [] != {break } }for ; < ; -- {if [] != {break } }return [ : +1]}// TrimRight is the equivalent of strings.TrimRightfunc ( string, byte) string { := len()for > 0 && [-1] == { -- }return [:]}// EqualFold tests ascii strings for equality case-insensitivelyfunc (, string) bool {iflen() != len() {returnfalse }for := len() - 1; >= 0; -- {iftoUpperTable[[]] != toUpperTable[[]] {returnfalse } }returntrue}
The pages are generated with Goldsv0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.