go-obs-websocket
go-obs-websocket copied to clipboard
More idiomatic generated code
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.
Revisiting this, I think I'll probably wait until generics are a thing, since they would make this code 500x easier to write.
yayyyyyyyyyyyyyyyyyy https://github.com/golang/go/issues/43651#issuecomment-776944155