What on earth happened to 6g and 6l

508 views
Skip to first unread message

Luke Carpenter

unread,
May 11, 2012, 3:53:18 PM5/11/12
to golan...@googlegroups.com
Hi,

I have just upgraded ye olde version of Go (about 6-8 months old) to Go 1, and I am now, very, very stuck.

I am used to the following for getting an program to a usable state:
  1. Stick source code into 6g
  2. Stick output from 6g into 6l
  3. Tada, shiny shiny executable
  4. ./awesome-program
After updating to 1.0 and beyond, these commands seem to be replaced with the "go" command, which as been winding me up for the last hour

I was attempting to "go install code.google.com/p/go.net" to install both the SPDY and WebSocket packages, but this command also seems to be failing, when according to the docs, I'm doing everything by the book

All in all, I have two questions:
  1. What is the replacement for "code => 6g => 6l => executable"?
  2. How on earth do I install go.net?
Thanks,
Luke

Rémy Oudompheng

unread,
May 11, 2012, 3:55:28 PM5/11/12
to Luke Carpenter, golan...@googlegroups.com
go build -o executable_name source_file.go

> How on earth do I install go.net?

go get code.google.com/p/go.net

The new "how to write Go code" at http://golang.org/doc/code.html is
updated with new procedures.

Rémy.

John Asmuth

unread,
May 11, 2012, 4:00:23 PM5/11/12
to golan...@googlegroups.com


On Friday, May 11, 2012 3:53:18 PM UTC-4, poptart wrote:

I was attempting to "go install code.google.com/p/go.net" to install both the SPDY and WebSocket packages, but this command also seems to be failing, when according to the docs, I'm doing everything by the book

"code.google.com/p/go.net" isn't an actual go package, though "code.google.com/p/go.net/websocket" is, for instance.

Also, to fetch it from the internet,
$ go get code.google.com/p/go.net/websocket

Regarding using the go tool in general, http://golang.org/cmd/go/

Matt Kane's Brain

unread,
May 11, 2012, 4:01:21 PM5/11/12
to Luke Carpenter, golan...@googlegroups.com
On Fri, May 11, 2012 at 3:53 PM, Luke Carpenter <orlyow...@gmail.com> wrote:
> What is the replacement for "code => 6g => 6l => executable"?

Your code in foo.go can be run two ways:
1.) go run foo.go
2.) go tool 6g foo.go && go tool 6l foo.6 && ./6.out

> How on earth do I install go.net?

You want "go get code.google.com/p/go.net/spdy" and repeat for each
package you want.

--
matt kane's brain
http://hydrogenproject.com
Reply all
Reply to author
Forward
0 new messages