Data is a helper that takes encrypted data and a format string, decrypts the data and returns its cleartext in an []byte. The format string can be `json`, `yaml`, `ini`, `dotenv` or `binary`. If the format string is empty, binary format is assumed.
(data []byte, format string)
| 75 | // The format string can be `json`, `yaml`, `ini`, `dotenv` or `binary`. |
| 76 | // If the format string is empty, binary format is assumed. |
| 77 | func Data(data []byte, format string) (cleartext []byte, err error) { |
| 78 | formatFmt := FormatFromString(format) |
| 79 | return DataWithFormat(data, formatFmt) |
| 80 | } |
nothing calls this directly
no test coverage detected