Save will store the content in the file, ensuring parent dir exists, and return the path. Asserts on failure.
(data string, key ...string)
| 41 | // Save will store the content in the file, ensuring parent dir exists, and return the path. |
| 42 | // Asserts on failure. |
| 43 | Save(data string, key ...string) string |
| 44 | // SaveToWriter allows to write to the file as a writer. |
| 45 | // This is particularly useful for encoding functions like pem.Encode. |
| 46 | SaveToWriter(writer func(file io.Writer) error, key ...string) string |
no outgoing calls