Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation issue [ absence of examples] #21

Closed
luminousmen opened this issue Aug 29, 2016 · 1 comment
Closed

Documentation issue [ absence of examples] #21

luminousmen opened this issue Aug 29, 2016 · 1 comment

Comments

@luminousmen
Copy link

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)
....
@vdobler
Copy link
Owner

vdobler commented Aug 29, 2016

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

@vdobler vdobler closed this as completed Aug 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants