go-obs-websocket icon indicating copy to clipboard operation
go-obs-websocket copied to clipboard

More idiomatic generated code

Open christopher-dG opened this issue 6 years ago • 2 comments

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 avatar Mar 19 '19 17:03 christopher-dG

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 avatar Jul 20 '20 19:07 christopher-dG

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

christopher-dG avatar Feb 10 '21 20:02 christopher-dG