Documentation ¶
Index ¶
- type DataExtractorFn
- type Dir
- type DirFn
- type File
- type FileFn
- func AddGoImports(imports []string) FileFn
- func AddJSONSection(section string, sectionContents interface{}) FileFn
- func AddProviderToWireSet(provider string) FileFn
- func AppendText(text string) FileFn
- func InsertCHTTPRoute(p InsertCHTTPRouteParams) FileFn
- func InsertLineAfter(find, insert string) FileFn
- func InsertText(text string, offset int) FileFn
- func ReplaceRegex(expr, text string) FileFn
- type InsertCHTTPRouteParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataExtractorFn ¶ added in v1.2.1
func ExtractGoModulePath ¶ added in v1.2.1
func ExtractGoModulePath() DataExtractorFn
type Dir ¶ added in v1.2.1
type Dir struct {
// contains filtered or unexported fields
}
func (*Dir) ExtractData ¶ added in v1.2.1
func (d *Dir) ExtractData(fn DataExtractorFn) *Dir
func (*Dir) ModifyData ¶ added in v1.2.1
type DirFn ¶ added in v1.2.1
func CreateTemplateFiles ¶
func RemoveFile ¶ added in v1.2.1
func RenameFile ¶ added in v1.2.1
type File ¶ added in v1.2.1
type File struct {
// contains filtered or unexported fields
}
func (*File) CloseAndDone ¶ added in v1.2.1
func (*File) CloseAndOpen ¶ added in v1.2.1
type FileFn ¶ added in v1.2.1
func AddGoImports ¶ added in v1.2.1
func AddJSONSection ¶
func AddProviderToWireSet ¶ added in v1.2.1
func AppendText ¶ added in v1.2.1
func InsertCHTTPRoute ¶ added in v1.2.1
func InsertCHTTPRoute(p InsertCHTTPRouteParams) FileFn
func InsertLineAfter ¶ added in v1.2.1
func InsertText ¶ added in v1.2.1
func ReplaceRegex ¶ added in v1.2.1
Click to show internal directories.
Click to hide internal directories.