galdor / go-thumbhash

A Go implementation of the Thumbhash image placeholder generation algorithm.
ISC License
76 stars 2 forks source link

upgrade go to v1.21, enable image data piping #3

Open kheina opened 7 months ago

kheina commented 7 months ago
galdor commented 7 months ago

The first patch mixes the Go version update with other unrelated changes. if you send me a patch with just the bump to 1.21 (and you could even go to 1.22) and the use of the builtins min and max, I'll apply it.

For the second patch, it seems like a good idea but a quick read shows a couple minor issues (e.g. if the argument is now optional, why would you make it mandatory in readFilePath?). I'll see what I can do when I get the time.