Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenInVim ¶
OpenInVim opens a template in Vim Recommended to use Go >= v.1.15.7 due to call to exec.Command() See: https://blog.golang.org/path-security
Types ¶
type ReadWriteable ¶
ReadWriteable is the interface on which file operations are executed
type ReadWriter ¶
type ReadWriter struct{}
ReadWriter executes file operations
func (*ReadWriter) Exists ¶
func (rw *ReadWriter) Exists(rwable ReadWriteable) bool
Exists evaluates if a file exists
func (*ReadWriter) Overwrite ¶
func (rw *ReadWriter) Overwrite(rwable ReadWriteable) error
Overwrite writes a template to a file, overwriting existing file contents if any
func (*ReadWriter) Read ¶
func (rw *ReadWriter) Read(rwable ReadWriteable) error
Read reads from file
Click to show internal directories.
Click to hide internal directories.