Versions in this module Expand all Collapse all v0 v0.2.0 Nov 22, 2026 v0.1.0 Sep 6, 2026 Changes in this version + func Format(file File) string + type Boundary struct + Comments []string + Direction BoundaryDirection + Endpoint Endpoint + Name string + Span Span + type BoundaryDirection string + const BoundaryInput + const BoundaryOutput + type Delivery string + const Lossless + const Lossy + type Edge struct + Comments []string + Delivery Delivery + From Endpoint + Name string + Span Span + To Endpoint + func (edge Edge) Identity() string + type Endpoint struct + Node string + Port string + Span Span + func (endpoint Endpoint) String() string + type Error struct + Message string + Path string + Span Span + func (failure *Error) Error() string + type File struct + Graph Graph + Imports []Import + Path string + func Parse(path string, source []byte) (File, error) + type Graph struct + Comments []string + Name string + Span Span + Statements []Statement + TrailingComments []string + func (graph Graph) Boundaries() []Boundary + func (graph Graph) Edges() []Edge + func (graph Graph) Nodes() []Node + type Import struct + Alias string + Comments []string + Path string + Span Span + type Node struct + Comments []string + Element string + Name string + Span Span + type Position struct + Column int + Line int + Offset int + type Recovery struct + Complete bool + Diagnostics []Error + File File + func Recover(path string, source []byte, limits RecoveryLimits) (Recovery, error) + type RecoveryLimits struct + MaxDiagnostics int + MaxSourceBytes int + MaxStatements int + MaxTokens int + func DefaultRecoveryLimits() RecoveryLimits + type Span struct + End Position + Start Position + type Statement struct + Boundary *Boundary + Edge *Edge + Node *Node