Versions in this module Expand all Collapse all v0 v0.0.2 Nov 3, 2023 Changes in this version + const MaxDepth + const MinorCurrent + const MinorSupported + const PatchSupported + var APIVersionSupported = Version(MinorSupported, PatchSupported) + var BaseContext = Context + var ErrIncomplete = errors.New("incomplete value") + var ErrInexact = errors.New("inexact subsumption") + var MakeInstance func(value interface{}) (instance interface{}) + func ConstraintToken(f *ast.Field) (t token.Token, ok bool) + func DecorateError(info error, err errors.Error) errors.Error + func EmbedStruct(s *ast.StructLit) *ast.EmbedDecl + func FileComment(f *ast.File) *ast.CommentGroup + func GenPath(root string) string + func IsDef(s string) bool + func IsDefOrHidden(s string) bool + func IsDefinition(label ast.Label) bool + func IsEllipsis(x ast.Decl) bool + func IsHidden(s string) bool + func IsRegularField(f *ast.Field) bool + func ListEllipsis(n *ast.ListLit) (elts []ast.Expr, e *ast.Ellipsis) + func NewAttr(name, str string) *ast.Attribute + func NewComment(isDoc bool, s string) *ast.CommentGroup + func PackageInfo(f *ast.File) (p *ast.Package, name string, tok token.Pos) + func SetConstraint(f *ast.Field, t token.Token) + func SetPackage(f *ast.File, name string, overwrite bool) + func ToExpr(n ast.Node) ast.Expr + func ToFile(n ast.Node) *ast.File + func Version(minor, patch int) int + type Attr struct + Body string + Err errors.Error + Fields []KeyValue + Kind AttrKind + Name string + func NewNonExisting(key string) Attr + func ParseAttrBody(pos token.Pos, s string) (a Attr) + func (a *Attr) Flag(pos int, key string) (bool, error) + func (a *Attr) Int(pos int) (int64, error) + func (a *Attr) Lookup(pos int, key string) (val string, found bool, err error) + func (a *Attr) String(pos int) (string, error) + type AttrKind uint8 + const DeclAttr + const FieldAttr + type Context struct + func (c Context) Quo(d, x, y *apd.Decimal) (apd.Condition, error) + func (c Context) Sqrt(d, x *apd.Decimal) (apd.Condition, error) + func (c Context) WithPrecision(p uint32) Context + type Decimal = apd.Decimal + type KeyValue struct + func (kv *KeyValue) Key() string + func (kv *KeyValue) Text() string + func (kv *KeyValue) Value() string + type PkgInfo struct + Index int + Name string + Package *ast.Package + func GetPackageInfo(f *ast.File) PkgInfo + func (p *PkgInfo) IsAnonymous() bool