abujehad139 / google-api-go-client

Automatically exported from code.google.com/p/google-api-go-client
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Please fix *.go in examples directory to work with v1beta13 api #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What do you see instead?

TJYANG-MBA:examples tjyang$ pwd;date;go version
/Users/tjyang/gocode/google-api-go-client/examples
Sat Nov 17 20:29:23 CST 2012
go version go1.0.2
TJYANG-MBA:examples tjyang$ go build -x compute.go
WORK=/var/folders/b5/fvmddjbn7pz8wh90gxdx4h8w0000gp/T/go-build981563320
mkdir -p $WORK/command-line-arguments/_obj/
cd /Users/tjyang/gocode/google-api-go-client/examples
/usr/local/go/pkg/tool/darwin_amd64/6g -o 
$WORK/command-line-arguments/_obj/_go_.6 -p command-line-arguments -D 
_/Users/tjyang/gocode/google-api-go-client/examples -I $WORK ./compute.go
# command-line-arguments
./compute.go:13: undefined: registerDemo
TJYANG-MBA:examples tjyang$ 
TJYANG-MBA:examples tjyang$ go build -x compute.go
WORK=/var/folders/b5/fvmddjbn7pz8wh90gxdx4h8w0000gp/T/go-build981563320
mkdir -p $WORK/command-line-arguments/_obj/
cd /Users/tjyang/gocode/google-api-go-client/examples
/usr/local/go/pkg/tool/darwin_amd64/6g -o 
$WORK/command-line-arguments/_obj/_go_.6 -p command-line-arguments -D 
_/Users/tjyang/gocode/google-api-go-client/examples -I $WORK ./compute.go
# command-line-arguments
./compute.go:13: undefined: registerDemo
TJYANG-MBA:examples tjyang$ 

What version of the product are you using? On what operating system?

TJYANG-MBA:examples tjyang$ go version
go version go1.0.2
TJYANG-MBA:examples tjyang$ 

Darwin TJYANG-MBA.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 
16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64

Please provide any additional information below.

Is my go version too new ? I remembered I got it compiled one time perhaps 
using order version of go with v1beta12 api library.

Original issue reported on code.google.com by tjyang2...@gmail.com on 18 Nov 2012 at 2:39

GoogleCodeExporter commented 9 years ago
You're trying to build a single source file (compute.go), but the package 
involves multiple files.

Build the whole package and then run it.

Original comment by bradfitz@google.com on 18 Nov 2012 at 3:53

GoogleCodeExporter commented 9 years ago
Thanks Brad,

cd examples
go get -x code.google.com/p/goauth2/oauth
go build -x .

Original comment by tjyang2...@gmail.com on 18 Nov 2012 at 12:39