TempFile creates a new temporary file in the directory dir with a name beginning with prefix, opens the file for reading and writing, and returns the resulting *os.File. If dir is the empty string, TempFile uses the default directory for temporary files (see os.TempDir). Multiple programs calling Te
(dir, prefix string)
| 98 | // It is the caller's responsibility to remove the file when no longer |
| 99 | // needed. |
| 100 | TempFile(dir, prefix string) (File, error) |
| 101 | } |
| 102 | |
| 103 | // Dir abstract the dir related operations in a storage-agnostic interface as |
no outgoing calls