deprecated.go 367 B

123456789101112131415161718
  1. package utils
  2. // #nosec G103
  3. // DEPRECATED, Please use UnsafeString instead
  4. func GetString(b []byte) string {
  5. return UnsafeString(b)
  6. }
  7. // #nosec G103
  8. // DEPRECATED, Please use UnsafeBytes instead
  9. func GetBytes(s string) []byte {
  10. return UnsafeBytes(s)
  11. }
  12. // DEPRECATED, Please use CopyString instead
  13. func ImmutableString(s string) string {
  14. return CopyString(s)
  15. }