deprecated.go 337 B

12345678910111213141516
  1. package utils
  2. // Deprecated: Please use UnsafeString instead
  3. func GetString(b []byte) string {
  4. return UnsafeString(b)
  5. }
  6. // Deprecated: Please use UnsafeBytes instead
  7. func GetBytes(s string) []byte {
  8. return UnsafeBytes(s)
  9. }
  10. // Deprecated: Please use CopyString instead
  11. func ImmutableString(s string) string {
  12. return CopyString(s)
  13. }