Imports oss.terrastruct.com/d2/d2format oss.terrastruct.com/d2/d2graph oss.terrastruct.com/d2/d2layouts/d2dagrelayout oss.terrastruct.com/d2/d2lib oss.terrastruct.com/d2/d2renderers/d2svg oss.terrastruct.com/d2/d2target oss.terrastruct.com/d2/lib/textmeasure Standard library imports context encoding/json errors fmt os path/filepath regexp strings