Make no-cgo build work without source changes

This commit is contained in:
Tulir Asokan
2020-05-09 02:08:23 +03:00
parent baae66ed04
commit f89fcf7212
5 changed files with 31 additions and 4 deletions

14
webp.go Normal file
View File

@@ -0,0 +1,14 @@
// +build cgo
package main
import (
"image"
"io"
"github.com/chai2010/webp"
)
func decodeWebp(r io.Reader) (image.Image, error) {
return webp.Decode(r)
}