Documentation
¶
Index ¶
- func GetGoModFile(dir string) string
- func GetGoProjectFile(dir string) string
- func ParseFromGoModIn(file *modfile.File, out *GoProject) error
- func ParseFromGoModuleNameIn(name string, out *GoProject) error
- func ParseIn(doc modlike.Document, out *GoProject) error
- type BuildInfo
- type GoProject
- type ProjectInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGoModFile ¶
func GetGoProjectFile ¶
func ParseFromGoModuleNameIn ¶
Types ¶
type GoProject ¶
type GoProject struct {
Project *ProjectInfo `modlike:"project"`
Builds []*BuildInfo `modlike:"build"`
}
type ProjectInfo ¶
type ProjectInfo struct {
Name string `modlike:"name"`
Version *version.Version `modlike:"version"`
Module string `modlike:"module"`
Author string `modlike:"author"`
}
func (*ProjectInfo) GetGoModStmt ¶
func (p *ProjectInfo) GetGoModStmt() string
Click to show internal directories.
Click to hide internal directories.