tkrajina / typescriptify-golang-structs

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

Usage as a library #67

Closed mozey closed 6 months ago

mozey commented 1 year ago

To use this as a library in my module I had to do this

go get github.com/tkrajina/typescriptify-golang-structs/typescriptify

Just doing this

go get github.com/tkrajina/typescriptify-golang-structs

Results in an error

module found... but does not contain package
tkrajina commented 6 months ago

Not sure what's the problem, but this to me just works:

mkdir -p tsc_playground && cd tsc_playground && go get github.com/tkrajina/typescriptify-golang-structs