NVIDIA / go-nvml

Go Bindings for the NVIDIA Management Library (NVML)
Apache License 2.0
290 stars 62 forks source link

Idiomatic Go Errors #120

Open abursavich opened 4 months ago

abursavich commented 4 months ago

I'm curious if you'd be open to changing the API to return idiomatic Go errors instead of idiomatic C codes. In other words, this would replace Return with error in all of the Go-friendly wrappers.

It would be a breaking change and would be a hassle for existing users, but it would be much more ergonomic for new users.