Versions in this module Expand all Collapse all v0 v0.2.1 Aug 14, 2026 v0.2.0 Aug 14, 2026 Changes in this version type Assertion + Local bool type Export + Direct bool v0.1.0 Aug 13, 2026 Changes in this version + const GeneratedHeader + var ErrAssertion = errors.New("interface assertion does not hold") + var ErrCollision = errors.New("two exports collide on one facade name") + var ErrGeneric = errors.New("generic declaration cannot be forwarded") + var ErrKindMismatch = errors.New("symbol is not of the declared kind") + var ErrLeak = errors.New("internal type is reachable from the public API without a facade alias") + var ErrLoad = errors.New("generated module did not load") + var ErrManifestChanged = errors.New("published API differs from the baseline") + var ErrMissingSymbol = errors.New("requested symbol is not exported by the loaded package") + var ErrMutableVar = errors.New("exported variables may not be part of the public API") + var ErrSpec = errors.New("facade specification is not usable") + var ErrUnrepresentable = errors.New("type cannot be spelled in the generated package") + type Assertion struct + Interface string + Pointer bool + Type string + type Difference struct + After string + Before string + Name string + func Diff(before, after Manifest) []Difference + func (d Difference) String() string + type Entry struct + Kind Kind + Members []Member + Name string + Target string + Type string + Underlying string + Value string + type Export struct + Doc string + Kind Kind + Name string + Source string + type Kind uint8 + const KindConst + const KindFunc + const KindInterface + const KindType + const KindVar + func ParseKind(name string) (Kind, error) + func (k Kind) String() string + type Manifest struct + Entries []Entry + Module string + Package string + func (m Manifest) CheckAgainst(baseline Manifest) error + func (m Manifest) Equal(other Manifest) bool + func (m Manifest) Render() string + type Member struct + Kind MemberKind + Name string + Type string + type MemberKind uint8 + const MemberField + const MemberMethod + func (k MemberKind) String() string + type Options struct + Dir string + Env []string + Spec Spec + type Result struct + Files []relocate.File + Manifest Manifest + func Generate(ctx context.Context, opts Options) (Result, error) + type Spec struct + Assertions []Assertion + AssertionsFile string + Exports []Export + File string + InternalPrefix string + ModulePath string + Package string + SourcePrefix string