chai2010 / webp

WebP decoder and encoder for Go (Zero Dependencies).
http://godoc.org/github.com/chai2010/webp
BSD 3-Clause "New" or "Revised" License
512 stars 89 forks source link

Not enough return values on GetInfo function #58

Closed NathanielRand closed 1 year ago

NathanielRand commented 1 year ago

There are not enough return values for the GetInfo function and I am receiving an build error when using the package. How is this function being used with an invalid/missing return types

Location: /github.com/chai2010/webp/webp.go:22:10

func GetInfo(data []byte) (width, height int, hasAlpha bool, err error) { return (data) }