Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GoModuleTemplate string = `module {{.GoModule}}
go {{.GoVersion}}
`
Functions ¶
This section is empty.
Types ¶
type GoModuleInfo ¶
GoModuleInfo represents go module information
func NewGoModuleInfo ¶
func NewGoModuleInfo(opts ...option.Option) *GoModuleInfo
NewGoModuleInfo returns a new GoModuleInfo pointer
func (*GoModuleInfo) RenderFile ¶
func (info *GoModuleInfo) RenderFile(outputPath string) error
RenderFile render template and output to file
Click to show internal directories.
Click to hide internal directories.