general

package
v0.0.0-...-7995a24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 3 Imported by: 0

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

type GoModuleInfo struct {
	Opts      *option.Options
	GoModule  string
	GoVersion string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL