Merge pull request 'Do not truncate file on open, used wrong function' (#7) from gcrkrause/fix-open-file into master

Reviewed-on: https://git.soundship.de/gcrkrause/gott/pulls/7
main
Georg Krause 2020-01-29 09:45:16 +00:00
commit 667b01c70b
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ func main() {
}
jsonFile, err := os.Create(datafile)
jsonFile, err := os.OpenFile(datafile, os.O_RDWR|os.O_CREATE, 0755)
if err != nil {
fmt.Println(err)