struct2ts icon indicating copy to clipboard operation
struct2ts copied to clipboard

Generate all Structs in a file

Open teleclimber opened this issue 6 years ago • 1 comments
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.

teleclimber avatar Oct 11 '19 19:10 teleclimber

Sadly that's not implemented yet, more or less a dup of #4.

OneOfOne avatar Oct 11 '19 20:10 OneOfOne