Documentation ¶
Index ¶
Constants ¶
View Source
const (
FileModeOwnerRWX = 0644
)
Variables ¶
View Source
var ( ErrNoMatchingClause = errors.New("no matching clause") ErrNoMatchingExpression = errors.New("no matching expression") )
Functions ¶
This section is empty.
Types ¶
type Inject ¶
type Inject struct { Matcher string Clause InjectClause }
type InjectClause ¶
type InjectClause string
const ( InjectBefore InjectClause = "Before" InjectAfter InjectClause = "After" )
type Write ¶
type Write struct {
// contains filtered or unexported fields
}
func (*Write) AppendFile ¶
AppendFile - append data to the end of file
func (*Write) InjectIntoFile ¶
InjectIntoFile - inject before, or after a matcher for a source file. If the matcher can't be found, don't do anything to the file
Click to show internal directories.
Click to hide internal directories.