A simple and powerful Go to {Typescript, Dart} definitions.
Inspired by OneOfOne/structgen, but build with go/types.
go get -u -v github.com/benoitkugler/structgen/...
// TODO: fix doc
➤ structgen -h
Usage of ./structgen:
-output string
ts or dart file to write to
-source string
go source file to convert
All types in source
are converted (not only structs)