Golang has no WebP support
pkg.go.dev
pkg.go.dev
And there is a third-party package [1] for webp also, in native Go, which includes both a decoder and an encoder. Plus there are other third-party packages, that bind to external code (C libs, at a guess).
— If your complaint is speficially that webp support should be a part of the standard library, then perhaps keep an eye on the stuff in x, that's often where stuff happens before making it into the stdlib.
And/or file an issue.
And/or you are welcome to contribute code ;)
OTOH, folks have been saying "what if we rewrote the encoder in plain Go (no C)" since 2016 and it doesn't appear to have happened:
https://groups.google.com/g/golang-nuts/c/gZ-PCUGw7Rk/m/lrBF...
WebP is widely supported by every major browser. https://caniuse.com/?search=webp
Golang and WebP were both developed at Google. https://en.wikipedia.org/wiki/WebP https://en.wikipedia.org/wiki/Go_(programming_language)
Golang has image decoder / encoder support for Gif, Jpeg, and Png... but not WebP. https://pkg.go.dev/image@go1.19.2#section-directories