christopher-dG / go-obs-websocket

Go client for obs-websocket
MIT License
85 stars 26 forks source link

More idiomatic generated code #1

Open christopher-dG opened 5 years ago

christopher-dG commented 5 years ago

Stuff like this is really gross:

https://github.com/christopher-dG/go-obs-websocket/blob/2efc3605bff52dbb4e4043286352d90e9b3061ac/requests_streaming.go#L246-L256

Implementing something along these lines would be much nicer. Maybe it's also time to look at using go generate, since the Python script is pretty unwieldy.

christopher-dG commented 4 years ago

Revisiting this, I think I'll probably wait until generics are a thing, since they would make this code 500x easier to write.

christopher-dG commented 3 years ago

yayyyyyyyyyyyyyyyyyy https://github.com/golang/go/issues/43651#issuecomment-776944155