Documentation ¶
Index ¶
Constants ¶
View Source
const GoModFile = "go.mod"
Variables ¶
View Source
var (
ErrGoModNotFound = errors.New("can't locate go.mod")
)
Functions ¶
This section is empty.
Types ¶
type GoAstModification ¶
type GoAstModifier ¶
type GoAstModifier struct {
// contains filtered or unexported fields
}
func NewGoAstModifier ¶
func NewGoAstModifier(file string) *GoAstModifier
func (*GoAstModifier) AddImport ¶
func (gas *GoAstModifier) AddImport(p string)
func (*GoAstModifier) AddModification ¶
func (gas *GoAstModifier) AddModification(actor ...GoAstModification)
func (*GoAstModifier) ParseAndModify ¶
type GoModMeta ¶
type GoModMeta struct {
// contains filtered or unexported fields
}
func ParseGoMod ¶
func (*GoModMeta) GetProject ¶
Click to show internal directories.
Click to hide internal directories.