1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-04-28 22:11:15 +00:00
fiber/utils/deprecated.go
Roman ca0e784fb9
Refactor cache middleware to not-use the deprecated methods ()
* ♻️ refactor: cache: don't use the deprecated `SafeBytes` and use `CopyBytes` instead

* ♻️ refactor: utils: remove deprecated and unused methods
2021-03-30 23:31:03 +02:00

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)
}