chai2010

Results 97 comments of chai2010

配置好cgo环境,正常使用就行。你是遇到什么问题了吗

可能是这个工具对cgo不友好。遇到问题时建议优先用官方的`go get`和`go build`

https://godoc.org/github.com/chai2010/webp#example-Encode--Lossless

The gist is disabled in China. Can you paste the gist code? And any PR are welcome. Thanks for your feedback!

go1.16: add missing files to `Go:embed`, keep the missing files in the vendor. any PR are welcomed

```Go package main import ( "bytes" "fmt" "io/ioutil" "log" "time" "github.com/chai2010/webp" ) var buf bytes.Buffer var width, height int var data []byte var err error func main() { if data,...

https://github.com/golang/go/blob/master/src/image/ycbcr.go#L186

0.4.1,no plan to update to 0.5.1 PR are welcome

确实有你说的这种情况。但是参考Linux/Chrome的版本,即使是平滑的过渡,Go1也不可能版本更新到Go1.100。 我个人的感觉,Go2会在某个时间点打破Go1的兼容性承诺,这个时刻是必须升级大版本的。

> 毕竟“不兼容”只是在语法语义层面 如果语法层面出现了不兼容(比如中文函数名被改为导出了),那么就是破坏了Go1的承诺。 至于说中间代码层面兼容,目前的Go语言还没有一个ABI标准,更是奢望了,Go1诺言也没有涉及这个层面。 至于“go1退出历史”这种说法,这是我的个人观点,如果不认同可以忽略啊