Documentation ¶
Overview ¶
Copyright 2022 Hal Canary Use of this program is governed by the file LICENSE.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileBuf ¶
type FileBuf struct { Path string // contains filtered or unexported fields }
Implements `io.Writer`, `io.StringWriter`, `io.WriteCloser`. When `Close()` is called, writes buffer to `Path`, if it differs from the contents of the file at `Path` or there is no file at `Path`. `Path` must be populated by the caller.
func (*FileBuf) Close ¶
Close writes buffer to `Path`, if it differs from the contents of the file at `Path` or there is no file at `Path`.
Click to show internal directories.
Click to hide internal directories.