Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File interface {
// Path is the path of the file.
Path() string
// Abs returns the absolute path of the file.
Abs(ctx context.Context) (string, error)
// Rel returns the relative path of the file with context cwd.
Rel(ctx context.Context) (string, error)
// Value is the content of the file.
Value() string
// Bytes is the content of the file.
Bytes() []byte
}
func NewTextFile ¶
Click to show internal directories.
Click to hide internal directories.