manifesto

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCannotReadEntries = fmt.Errorf("cannot read entries")

Functions

This section is empty.

Types

type Entrypoint

type Entrypoint struct {
	LocalPath string `json:"localPath"`
	Name      string `json:"name"`
}

type LocalManifesto

type LocalManifesto struct {
	Modules []module.Manifesto `json:"modules"`
	Entries []Entrypoint       `json:"entries,omitempty"`
}

func LoadLocalManifesto

func LoadLocalManifesto(projPath string) (*LocalManifesto, error)

func NewFromFs

func NewFromFs(manifestFs fs.FS, filename string) (*LocalManifesto, error)

func (*LocalManifesto) AddModule

func (m *LocalManifesto) AddModule(module module.Manifesto)

func (*LocalManifesto) FindLocalModule

func (m *LocalManifesto) FindLocalModule(moduleName string) (module.Manifesto, bool)

func (*LocalManifesto) LocalModules

func (m *LocalManifesto) LocalModules() []module.Manifesto

func (*LocalManifesto) ReadFromJSON

func (m *LocalManifesto) ReadFromJSON(data []byte) error

func (*LocalManifesto) SaveAsLocalManifest

func (m *LocalManifesto) SaveAsLocalManifest(projPath string) error

func (*LocalManifesto) UpdateModule

func (m *LocalManifesto) UpdateModule(module module.Manifesto)

func (*LocalManifesto) WriteToJSON

func (m *LocalManifesto) WriteToJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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