package d2compiler
Import Path
github.com/pancsta/d2/d2compiler (on go.dev)
Dependency Relation
imports 21 packages, and imported by one package
Involved Source Files
compile.go
Package d2compiler implements a parser, compiler and autoformatter for the Terrastruct d2
diagramming language.
Package-Level Type Names (only one)
Context stops parsing and compilation when canceled. A nil Context is
treated as context.Background().
FS resolves imports. Nil disables imports. The lib/localfile package
provides rooted and explicit unrestricted host-filesystem policies.
MaxEdgeExpansion bounds distinct edge-segment and endpoint combinations
considered by edge globs. Zero uses DefaultMaxEdgeExpansion. Explicit edges
do not consume this budget.
MaxEdgeExpansionWork bounds all endpoint-pair examinations performed by
edge globs, including lazy replays. Zero uses DefaultMaxEdgeExpansionWork.
MaxGlobExpansion bounds work performed by glob matching and
materialization. Zero uses DefaultMaxGlobExpansion. Explicit source fields
are not counted as materialization work.
MaxVariableExpansion bounds work added by substitutions and automatic
copies. Zero uses DefaultMaxVariableExpansion.
UTF16Pos bool
func Compile(p string, r io.Reader, opts *CompileOptions) (*d2graph.Graph, *d2target.Config, error)
Package-Level Functions (only one)
Package-Level Variables (total 2)
var FullToShortLanguageAliases map[string]string
TODO add more, e.g. C, bash
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |