I installed Go on my Windows 8.1 machine using the go1.4.2.windows-amd64.msi file. That created a directory in the root - C:\Go. Then I tried to run Go by opening a command window and typing C:\Go\bin\go.exe No luck. A command window pops up briefly, and then go away before I can read it. How do you start GO?
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
go get github.com/google/skicka
skicka
executable in $GOPATH/bin
to a directory in
your PATH
, or add $GOPATH/bin
to your PATH
.skicka init
to create a skeleton ~/.skicka.config
file. Various
options can be set in this file to control skicka's operation; see
comments in the file for more information.skicka ls
,
and skicka will attempt to open an authorization page in your web
browser. Click the "Accept" button to authorize skicka. You only need
to perform this step once.
skicka
-no-browser-auth ls
and skicka will ask you to visit a URL: go to the
URL in a browser, log into your Google account (if needed), and give
permission for the application to access your Google Drive
files. After you click 'accept', copy the code from your browser
window to the terminal with the "Enter verification code" prompt from
skicka.After fiddling with the environmental variables for a couple of hours, I finally got the Go environment running. Here's my environment settings.
PATH = ......;C:\Go\bin\
GOROOT = C:\GoGOPATH = C:\Users\xxxx\gostuff\GOBIN = %GOPATH%bin\With this environment, I was able to run the Hello World program:C:\>go run %GOPATH%bin\hello.gohello, worldAlsoC:\>go versiongo version go1.4.2 windows/amd64Unfortunately, I couldn't get the following to work:C:\>go run hello.goGetFileAttributesEx hello.go: The system cannot find the file specified.I put the hello.go program in C:\Users\xxxx\gostuff\bin\ which is the same as %GOPATH%bin\hello.go, which is the same as %GOBIN%. Unfortunately, I still have to list the path to hello.go in the command line. I can't make Go find hello.go using the environmental vars.
In any case, my ultimate goal is to get the skicka Google Drive upload application running, which is written in Go. Here's the link to the Go code in GitHub:
https://github.com/google/skicka
... [snip] ...
Several questions:
1. How do you "Build" sckicka?
2. Which one of the many .go modules in the GitHub skicka repository is the "executable" that I am supposed to copy to somewhere in my PATH?
3. If I can't get Go to find hello.go in the\bin directory, how will it find this "executble"?