Versions in this module Expand all Collapse all v1 v1.138.0 Sep 29, 2026 Changes in this version + const MaxDepth + const Prefix + var ErrNotFound = errors.New("no such library version") + func IsLibrary(file *syntax.File) bool + func Loader(ctx context.Context, src Source, env starlark.StringDict) func(*starlark.Thread, string) (starlark.StringDict, error) + func SourceIsLibrary(source string) bool + type Load struct + Err error + Line int + Ref Ref + func Loads(file *syntax.File) []Load + type Problem struct + Line int + Message string + func Check(ctx context.Context, src Source, source, self string) []Problem + type Ref struct + Name string + Version int + func ParseModule(module string) (Ref, error) + func Refs(source string) []Ref + func (r Ref) String() string + type Source interface + LibrarySource func(ctx context.Context, name string, version int) (string, error)