Fakeer
Fakeer

Reputation: 1034

How to include 3rd party libraries in Go on AppEngine?

I want to use the pdf library https://godoc.org/code.google.com/p/gofpdf. I only have the GAE SDK for Go installed and nothing else. i would like to be able to do:

import "code.google.com/p/gofpdf"

I have a feeling the entire library has to be downloaded into my codebase?

Upvotes: 0

Views: 557

Answers (1)

MIkCode
MIkCode

Reputation: 2835

If you want to use third party libraries in go you usually us the go -get command
In your case it wil be

go get code.google.com/p/gofpdf

I suggest that you will this this doc on go

How to Write Go Code

Upvotes: 3

Related Questions