tscriptify

Convert Go structs to TypeScript classes and interfaces

brewmacoslinux
Try with needOr install directly
Source

About

Golang struct to TypeScript class/interface converter

Commands

tscriptify

Examples

Convert a Go struct to TypeScript interface$ tscriptify -struct=User input.go
Convert multiple structs from a file to TypeScript$ tscriptify input.go > output.ts
Generate TypeScript with custom naming conventions$ tscriptify -struct=MyStruct -interface input.go