version

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Getter

type Getter interface {
	GetVersion() Version
	GetDefaultGraph() ir.Graph
	GetDefaultGraphHash() string
	GetStarlarkInterpreter(buildContextDir string) starlark.Interpreter
}

Checker gets the version from the comment. # syntax=v0

func New

func New(file string) (Getter, error)

New returns a new version getter.

type Version

type Version string
const (
	// V1 is the v1 version of the starlark frontend language.
	V1 Version = "v1"
	// V0 is the v0 version of the starlark frontend language.
	// v0 is the default version of the language.
	V0 Version = "v0"
	// VersionUnknown is the unknown version of the starlark frontend language.
	VersionUnknown Version = "unknown"
)

Jump to

Keyboard shortcuts

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