Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate all Structs in a file #21

Open
teleclimber opened this issue Oct 11, 2019 · 1 comment
Open

Generate all Structs in a file #21

teleclimber opened this issue Oct 11, 2019 · 1 comment

Comments

@teleclimber
Copy link

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.

@OneOfOne
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants