struct2ts
struct2ts copied to clipboard
Generate all Structs in a file
trafficstars
Hello, I'm trying to generate TS classes for all exported structs in a given file. I can't seem to be able to do this. What is the trick? on https://github.com/tkrajina/typescriptify-golang-structs you can just specify a file:
If all your structs are in one file, you can convert them with:
tscriptify -package=package/with/your/models -target=target_ts_file.ts path/to/file/with/structs.go
I tried a number of variations to specify a file from the command line, but I always get errors. Is this implemented? or what am I missing?
Thanks.
Sadly that's not implemented yet, more or less a dup of #4.