tkrajina / typescriptify-golang-structs

A Golang struct to TypeScript class/interface converter
Apache License 2.0
505 stars 87 forks source link

Error message to stderr #55

Closed leaanthony closed 2 years ago

leaanthony commented 2 years ago

Hi - great project.

I noticed that there is a message that's being output to stderr and there's no way of disabling it because the logic test is always true: https://github.com/tkrajina/typescriptify-golang-structs/blob/master/typescriptify/typescriptify.go#L131-L133

Happy to do a PR for this...

tkrajina commented 2 years ago

Ah, yes, you're right, thanks! I moved that warning in the .Convert() method and also changed the default of CreateFromMethod to false. That warning is showing for almost a year now.

leaanthony commented 2 years ago

Thanks. Let me know when you tag it and I'll switch from my fork. Thanks.

tkrajina commented 2 years ago

It's in v0.1.7 now.