mirror of
https://github.com/gofiber/fiber.git
synced 2025-04-28 22:11:15 +00:00
* ♻️ refactor: cache: don't use the deprecated `SafeBytes` and use `CopyBytes` instead * ♻️ refactor: utils: remove deprecated and unused methods
19 lines
367 B
Go
19 lines
367 B
Go
package utils
|
|
|
|
// #nosec G103
|
|
// DEPRECATED, Please use UnsafeString instead
|
|
func GetString(b []byte) string {
|
|
return UnsafeString(b)
|
|
}
|
|
|
|
// #nosec G103
|
|
// DEPRECATED, Please use UnsafeBytes instead
|
|
func GetBytes(s string) []byte {
|
|
return UnsafeBytes(s)
|
|
}
|
|
|
|
// DEPRECATED, Please use CopyString instead
|
|
func ImmutableString(s string) string {
|
|
return CopyString(s)
|
|
}
|