diff --git a/scribble.go b/scribble.go index 65844ce..d3e50ea 100644 --- a/scribble.go +++ b/scribble.go @@ -114,6 +114,9 @@ func (d *Driver) Write(collection, resource string, v interface{}) error { return err } + // add newline to the end + b = append(b, byte('\n')) + // write marshaled data to the temp file if err := ioutil.WriteFile(tmpPath, b, 0644); err != nil { return err