tkrajina / typescriptify-golang-structs

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

Skip private structs #71

Closed egtann closed 9 months ago

egtann commented 9 months ago

Trying to access private structs in the parsed Go file causes compile errors in the generated .go file. This checks each struct during the AST's walk to confirm that the structs are exported and thus able to be used.