diff options
author | Anthony HAMON <anthony.hamon@iadvize.com> | 2018-08-21 08:40:51 +0200 |
---|---|---|
committer | Anthony HAMON <anthony.hamon@iadvize.com> | 2018-08-21 20:54:46 +0200 |
commit | 810155ef2f8c1e34c3f67aa95dbde9dcb342bb8a (patch) | |
tree | 6c06caa8572c0e02d3505081d0c875380b67afe6 /pkg | |
parent | d6ee41358751e97b746785c80d7ba60d35b2ce07 (diff) |
fix documentation and reference issues
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/commands/os.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/commands/os.go b/pkg/commands/os.go index 9756d619d..18ff93cc6 100644 --- a/pkg/commands/os.go +++ b/pkg/commands/os.go @@ -175,7 +175,8 @@ func (c *OSCommand) Unquote(message string) string { return message } -func (C *OSCommand) AppendLineToFile(filename, line string) error { +// AppendLineToFile adds a new line in file +func (c *OSCommand) AppendLineToFile(filename, line string) error { f, err := os.OpenFile(filename, os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0600) if err != nil { return err |