(path string)
| 156 | } |
| 157 | |
| 158 | func CreateFile(path string) error { |
| 159 | file, err := os.Create(path) |
| 160 | if err != nil { |
| 161 | return err |
| 162 | } |
| 163 | defer file.Close() |
| 164 | return nil |
| 165 | } |
| 166 | |
| 167 | func CreateFileAndWriteContent(path string, content string) error { |
| 168 | file, err := os.OpenFile(path, os.O_WRONLY|os.O_CREATE, 0o666) |
no test coverage detected