Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotExisting = errors.New("path does not exist")
View Source
var NewLine = fmt.Sprintln()
Functions ¶
func CreateFileWithText ¶
func CreateFileWithText(path, text string, opener FileCreateOpener) error
func ReadModuleName ¶
func ReadModuleName(path string, opener FileReadOpener) (string, error)
Types ¶
type FileCreateOpener ¶
type FileCreateOpener interface {
OpenCreate(path string) (io.WriteCloser, error)
}
type FileOpener ¶
type FileOpener struct{}
func (FileOpener) OpenCreate ¶
func (o FileOpener) OpenCreate(path string) (io.WriteCloser, error)
func (FileOpener) OpenRead ¶
func (o FileOpener) OpenRead(path string) (io.ReadCloser, error)
type FileReadOpener ¶
type FileReadOpener interface {
OpenRead(path string) (io.ReadCloser, error)
}
Click to show internal directories.
Click to hide internal directories.