builder

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func MustNew

func MustNew(parser ManifestParser) Builder

func New

func New(parser ManifestParser) (Builder, error)

func (Builder) Build

func (b Builder) Build(
	ctx context.Context,
	wd string,
) (compiler.RawBuild, string, *compiler.Error)

func (Builder) Get

func (b Builder) Get(wd, path, version string) (string, error)

func (Builder) LoadModuleByPath

func (p Builder) LoadModuleByPath(
	ctx context.Context,
	wd string,
) (compiler.RawModule, string, error)

type ManifestParser

type ManifestParser interface {
	ParseManifest(raw []byte) (src.ModuleManifest, error)
}

Jump to

Keyboard shortcuts

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