tkrajina / typescriptify-golang-structs

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

YAML tag spport #46

Closed markszente closed 3 years ago

markszente commented 3 years ago

Hello, I've forked the repo and extended it so that YAML tags are also supported, alongside existing JSON support, of course. I'm not sure whether this is something the project could use, but I can make a PR if you guys want.

Here's the commit.

tkrajina commented 3 years ago

Hm, I don't really see many use-cases for this. And adding it would mean adding a ton of new tests and things I'd need to mantain in the future :(

markszente commented 3 years ago

Yeah, fair enough. I didn't bother adding tests (although the test structs have been extended with yaml tags), because it's for internal/hobby use only, and it would have required some serious refactoring.