package d2format

Import Path
	github.com/pancsta/d2/d2format (on go.dev)

Dependency Relation
	imports 4 packages, and imported by 4 packages

Involved Source Files escape.go format.go keypath.go
Package-Level Functions (total 3)
TODO: edges with shared path should be fmted as <rel>.(x -> y)
FormatKeyPath formats the scalar values in a as a canonical key path, like Format(d2ast.MakeKeyPathString(a)), without building a temporary key path AST. Quoting in the input nodes is intentionally ignored, just as in MakeKeyPathString.
func KeyPath(kp *d2ast.KeyPath) (ida []string)