Documentation ¶
Overview ¶
Package d2compiler implements a parser, compiler and autoformatter for the Terrastruct d2 diagramming language.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FullToShortLanguageAliases map[string]string
View Source
var ShortToFullLanguageAliases = map[string]string{
"md": "markdown",
"tex": "latex",
"js": "javascript",
"go": "golang",
"py": "python",
"rb": "ruby",
"ts": "typescript",
}
TODO add more, e.g. C, bash
Functions ¶
func Compile ¶
func Compile(path string, r io.RuneReader, opts *CompileOptions) (*d2graph.Graph, error)
Types ¶
type CompileOptions ¶
type CompileOptions struct {
UTF16 bool
}
Click to show internal directories.
Click to hide internal directories.