Files
imgo/examples/errors.go
2022-06-22 14:07:54 +08:00

16 lines
229 B
Go

package main
import (
"fmt"
"github.com/fishtailstudio/imgo"
)
func main() {
err := imgo.Load("gopher.jpg").Save("out.png").Error
if err != nil {
fmt.Println("error:", err.Error())
} else {
fmt.Println("success")
}
}