Open christopher-dG opened 5 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.
yayyyyyyyyyyyyyyyyyy https://github.com/golang/go/issues/43651#issuecomment-776944155
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.