knowledge

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	GoPath      string           `yaml:"go_path"`
	RequiresCGO bool             `yaml:"requires_cgo"`
	Build       types.PackageSet `yaml:"build"`
	Runtime     types.PackageSet `yaml:"runtime"`
}

Entry is a single record in the knowledge base.

type KnowledgeBase

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

KnowledgeBase is an in-memory, indexed view of packages.yaml.

func Load

func Load() (*KnowledgeBase, error)

Load parses the embedded YAML and returns an indexed KnowledgeBase.

func (*KnowledgeBase) Lookup

func (kb *KnowledgeBase) Lookup(goPath string) (Entry, bool)

Lookup returns the entry for a Go dependency path, if any.

Jump to

Keyboard shortcuts

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