
A simple cli-tools to transform golang struct and const to typescript interface and type
npm i -g go2dts
go2dts <goLangDirs ...> <typescriptFile>
Just put your golang file into __tests__/inputs and it will be parse each time you execute npm test or npm start.
npm start is more quick, so perfect to add some console.log and improve the parsing.
npm test --watch generate a snapshot, so you can just update this one to the expecting state and start coding to have everything green #TDDStyle
import dependencies, so the output types can be broken$ claude mcp add go2dts \
-- python -m otcore.mcp_server <graph>