We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1002041 commit b76050dCopy full SHA for b76050d
.gitignore
@@ -1,5 +1,6 @@
1
*.exe
2
+.vscode/
3
vendor/
-example/
4
+examples/
5
foo.go
6
foo_test.go
pkg/hostsapi/hostsapi.go
@@ -182,6 +182,10 @@ func (h *HostsAPI) Write() error {
182
defer f.Close()
183
184
f.Write(outbuf.Bytes())
185
+ err = f.Sync()
186
+ if err != nil {
187
+ return err
188
+ }
189
190
return nil
191
}
0 commit comments