project

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGoModFile

func GetGoModFile(dir string) string

func GetGoProjectFile

func GetGoProjectFile(dir string) string

func ParseFromGoModIn

func ParseFromGoModIn(file *modfile.File, out *GoProject) error

func ParseFromGoModuleNameIn

func ParseFromGoModuleNameIn(name string, out *GoProject) error

func ParseIn

func ParseIn(doc modlike.Document, out *GoProject) error

Types

type BuildInfo

type BuildInfo struct {
	Input  string `modlike:"input"`
	Output string `modlike:"output"`
}

type GoProject

type GoProject struct {
	Project *ProjectInfo `modlike:"project"`

	Builds []*BuildInfo `modlike:"build"`
}

func New

func New() *GoProject

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

Jump to

Keyboard shortcuts

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