Reviewer comments and suggestions incorporated.
Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
parent
7f7ccc375f
commit
c6cc205b78
14 changed files with 841 additions and 675 deletions
|
@ -14,10 +14,10 @@ func WriteFile(content string, path string) error {
|
|||
}
|
||||
}
|
||||
f, err := os.Create(path)
|
||||
defer f.Close()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer f.Close()
|
||||
f.WriteString(content)
|
||||
f.Sync()
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue