Curyous
Curyous

Reputation: 8866

Is it possible to use a Go package built from a different version?

I'm using Go for Google App Engine, which uses an older version of Go. I want to use a third party package that requires a newer version of Go (goauth). It is possible to use that package in my Google App Engine program?

Goauth uses strings.SplitN, which does not seem to be present in the GAE version of Go.

Upvotes: 0

Views: 124

Answers (1)

jimt
jimt

Reputation: 26370

Not without hacking the source of oauth to make it compatible, I'm afraid.

Either that, or you can try and contact the author to see if they are willing to publish a version compatible with AppEngine's Go version.

A third option would be to find an older revision of oauth which is compatible with your Go version and just use that one.

Upvotes: 1

Related Questions