meta

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: AGPL-3.0 Imports: 6 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

This section is empty.

Functions

func IsConfigured

func IsConfigured(m *Meta) bool

func ValidateStrict

func ValidateStrict(m *Meta) error

func WriteSkeleton

func WriteSkeleton(path string, urefs []string) error

Types

type Component

type Component struct {
	Ref        string  `yaml:"ref"`
	MaxVoltage float64 `yaml:"max_voltage"`
}

type Meta

type Meta struct {
	Version    string      `yaml:"version"`
	Sources    []Source    `yaml:"sources"`
	Regulators []Regulator `yaml:"regulators,omitempty"`
	Components []Component `yaml:"components,omitempty"`
}

func Load

func Load(path string) (*Meta, error)

func Parse

func Parse(path string) (*Meta, error)

type Regulator

type Regulator struct {
	Ref        string  `yaml:"ref"`
	InPin      string  `yaml:"in_pin"`
	OutPin     string  `yaml:"out_pin"`
	OutVoltage float64 `yaml:"out_voltage"`
}

type Source

type Source struct {
	Net     string  `yaml:"net"`
	Voltage float64 `yaml:"voltage"`
}

Jump to

Keyboard shortcuts

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