You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am newbie to go and can't understand how to use this package. Can you please provide basic usage with some examples. Because example you provided is big and hard to understand for me :(. And when I start my own test project I have errors like this:
../../.go/src/github.com/vdobler/chart/imgg/image.go:9:2: cannot find package "github.com/golang/freetype" in any of:
/usr/lib/go/src/github.com/golang/freetype (from $GOROOT)
/home/kir/.go/src/github.com/golang/freetype (from $GOPATH)
../../.go/src/github.com/vdobler/chart/imgg/image.go:10:2: cannot find package "github.com/golang/freetype/truetype" in any of:
/usr/lib/go/src/github.com/golang/freetype/truetype (from $GOROOT)
/home/kir/.go/src/github.com/golang/freetype/truetype (from $GOPATH)
../../.go/src/github.com/vdobler/chart/imgg/image.go:11:2: cannot find package "github.com/llgcode/draw2d" in any of:
/usr/lib/go/src/github.com/llgcode/draw2d (from $GOROOT)
/home/kir/.go/src/github.com/llgcode/draw2d (from $GOPATH)
../../.go/src/github.com/vdobler/chart/imgg/image.go:12:2: cannot find package "github.com/llgcode/draw2d/draw2dimg" in any of:
/usr/lib/go/src/github.com/llgcode/draw2d/draw2dimg (from $GOROOT)
/home/kir/.go/src/github.com/llgcode/draw2d/draw2dimg (from $GOPATH)
../../.go/src/github.com/vdobler/chart/imgg/image.go:14:2: cannot find package "golang.org/x/image/draw" in any of:
/usr/lib/go/src/golang.org/x/image/draw (from $GOROOT)
/home/kir/.go/src/golang.org/x/image/draw (from $GOPATH)
....
The text was updated successfully, but these errors were encountered:
This package won't be able to explain basic usage of Go, so I'll close it.
You have to install the required packages, e.g. via go get like this:
$ go get github.com/golang/freetype github.com/golang/freetype/truetype github.com/llgcode/draw2d github.com/llgcode/draw2d/draw2dimg golang.org/x/image/draw
I am newbie to go and can't understand how to use this package. Can you please provide basic usage with some examples. Because example you provided is big and hard to understand for me :(. And when I start my own test project I have errors like this:
The text was updated successfully, but these errors were encountered: