...

Package d2format

import "oss.terrastruct.com/d2/d2format"
Overview
Index

Overview ▾

func Format

func Format(n d2ast.Node) string

TODO: edges with shared path should be fmted as <rel>.(x -> y)

func KeyPath

func KeyPath(kp *d2ast.KeyPath) (ida []string)