vikstrous / dataloadgen

An implementation of Facebook's DataLoader in Go
MIT License
69 stars 10 forks source link

return a type that implements error from LoadAll methods #3

Closed vikstrous2 closed 1 year ago

vikstrous2 commented 2 years ago

I think it might be better to return a typed array of errors that implements error rather than a raw []error. This is probably mostly backwards compatible.

vikstrous commented 1 year ago

done in https://github.com/vikstrous/dataloadgen/commit/27a2990a0d298526a050f02cab69c41205a50a26

vikstrous commented 1 year ago

It wasn't very backwards compatible... but I'm still calling this package v0, so I went ahead with it.