{"id":52326,"library":"dave-dst","title":"dst","description":"Package dst declares the types used to represent decorated syntax trees for Go packages.","status":"active","version":"0.27.4","language":"go","source_language":null,"source_url":"https://github.com/dave/dst","tags":["ast","syntax-tree","decorations","go-parser"],"install":[{"cmd":"go get github.com/dave/dst","lang":"bash","label":"Install github.com/dave/dst"}],"dependencies":[],"imports":[{"symbol":"dst","correct":"github.com/dave/dst"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/dave/dst\"\n\t\"github.com/dave/dst/decorator\"\n)\n\nfunc main() {\n\tf, _ := decorator.Parse(\"package main\\n\\nfunc main() {}\\n\")\n\tfmt.Printf(\"%T\\n\", f)\n}","lang":"go","description":"Parse a Go source file into a decorated syntax tree."},"warnings":[{"fix":"Use dst and decorator instead of go/ast and parser when you need to preserve comments and formatting.","message":"dst is a fork of go/ast with decorations; it is not compatible with the standard ast package.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'ast':16 'declar':4 'decor':10,20 'dst':1,3 'go':14,22 'go-pars':21 'packag':2,15 'parser':23 'repres':9 'syntax':11,18 'syntax-tre':17 'tree':12,19 'type':6 'use':7","created_at":"2026-06-15T06:50:13.268287+00:00","updated_at":"2026-06-15T06:50:13.268287+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/dave/dst","github":"https://github.com/dave/dst","docs":"https://pkg.go.dev/github.com/dave/dst#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}