GithubHelp home page GithubHelp logo

golang / go Goto Github PK

View Code? Open in Web Editor NEW
119.6K 3.4K 17.2K 345.6 MB

The Go programming language

Home Page: https://go.dev

License: BSD 3-Clause "New" or "Revised" License

Shell 0.13% Go 88.45% C 0.24% HTML 5.26% JavaScript 0.04% Assembly 5.75% Makefile 0.01% Awk 0.01% Perl 0.06% Python 0.03% Batchfile 0.02% Dockerfile 0.01%
programming-language language go golang

go's Introduction

The Go Programming Language

Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.

Gopher image Gopher image by Renee French, licensed under Creative Commons 4.0 Attributions license.

Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.

Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.

Download and Install

Binary Distributions

Official binary distributions are available at https://go.dev/dl/.

After downloading a binary release, visit https://go.dev/doc/install for installation instructions.

Install From Source

If a binary distribution is not available for your combination of operating system and architecture, visit https://go.dev/doc/install/source for source installation instructions.

Contributing

Go is the work of thousands of contributors. We appreciate your help!

To contribute, please read the contribution guidelines at https://go.dev/doc/contribute.

Note that the Go project uses the issue tracker for bug reports and proposals only. See https://go.dev/wiki/Questions for a list of places to ask questions about the Go language.

go's People

Contributors

4a6f656c avatar aclements avatar adg avatar agl avatar alexbrainman avatar bradfitz avatar cherrymui avatar cixtor avatar crawshaw avatar cuonglm avatar davecheney avatar dr2chase avatar dvyukov avatar filosottile avatar findleyr avatar griesemer avatar ianlancetaylor avatar josharian avatar ken avatar mdempsky avatar minux avatar mknyszek avatar mvdan avatar nigeltao avatar prattmic avatar randall77 avatar robpike avatar rsc avatar thanm avatar tklauser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

go's Issues

error: conflicting types for 'getc'

by joearms:

What steps will reproduce the problem?
1. set up everthing as described
2.
3.

What is the expected output? What do you see instead?

quietgcc -ggdb -I/Users/joe/go/include -O2 -fno-inline -c
/Users/joe/go/src/cmd/cc/y.tab.c
/usr/include/stdio.h:269: error: conflicting types for 'getc'
/Users/joe/go/src/cmd/cc/cc.h:573: error: previous declaration of 'getc'
was here
make: *** [y.tab.o] Error 1


What is your $GOOS?  $GOARCH?

darwin/386 

Which revision are you sync'ed to?  (hg log -l 1)

3975:b51fd2d6c160


Please provide any additional information below.

int  getc(FILE *); is in stdio.c
int  getc(void); in cc.h

OOps

??none??: cannot open file: /???/_xtest_.8

by julians37:

What steps will reproduce the problem?
What is the expected output? What do you see instead?

Sorry, don't have the precise error message at hand but it said something 
about ???/_xtest_.8 not found (the error message contained three question 
marks, literally.)

What is your $GOOS?  $GOARCH?

linux_386

Which revision are you sync'ed to?  (hg log -l 1)

3975:b51fd2d6c160

Please provide any additional information below.

I took a wild guess and replaced the dot with the absolute path of the 
current working directory. That worked patch attached. (Although this 
might point to a deeper issue of course... I won't take it personal if you 
choose a different fix.)

Attachments:

  1. golang_abs_xtest.patch (436 bytes)

net: TestDialError fails

by telugujoshi:

What steps will reproduce the problem?
1. cd $GOROOT/src;./all,bash
2.
3.

What is the expected output? What do you see instead?

Expected:
--- cd ../test
N known bugs; 0 unexpected bugs

I saw:
...
rm -f _test/net.a
gopack grc _test/net.a _gotest_.8 
make[2]: Leaving directory `/home/joshi/go/src/pkg/net'
SIGTRAP: trace trap
Faulting address: 0x0
PC=0x8052840

net·hostPortToIP+0x15d /home/joshi/go/src/pkg/net/ipsock.go:199
    net·hostPortToIP(0x809608c, 0x3, 0x80a9104, 0xf, 0x0, ...)
net·ResolveTCPAddr+0x36 /home/joshi/go/src/pkg/net/tcpsock.go:61
    net·ResolveTCPAddr(0x80a9104, 0xf, 0x80960d0, 0x0)
net·Dial+0x27e /home/joshi/go/src/pkg/net/net.go:133
    net·Dial(0x809608c, 0x3, 0x80960d0, 0x0, 0x80a9104, ...)
net·TestDialError+0xd8 /home/joshi/go/src/pkg/net/net_test.go:56
    net·TestDialError(0x260ca0, 0x1)
testing·tRunner+0x36 /home/joshi/go/src/pkg/testing/testing.go:105
    testing·tRunner(0x260ca0, 0x80c9a54, 0x0)
goexit /home/joshi/go/src/pkg/runtime/proc.c:134
    goexit()
0x260ca0 unknown pc

goroutine 3:
runtime·entersyscall+0x60 /home/joshi/go/src/pkg/runtime/proc.c:539
    runtime·entersyscall()
syscall·Syscall6+0x5 /home/joshi/go/src/pkg/syscall/asm_linux_386.s:650
    syscall·Syscall6()
syscall·EpollWait+0x7c /home/joshi/go/src/pkg/syscall/zsyscall_linux_386.go:132
    syscall·EpollWait(0x6, 0x252220, 0x1, 0x1, 0x373, ...)
net·*pollster·WaitFD+0xff /home/joshi/go/src/pkg/net/fd_linux.go:116
    net·*pollster·WaitFD(0x1da4f8, 0x349a1468, 0x0, 0x24c1c0, 0x72, ...)
net·*pollServer·Run+0xc3 /home/joshi/go/src/pkg/net/fd.go:237
    net·*pollServer·Run(0x226280, 0x80cb318)
goexit /home/joshi/go/src/pkg/runtime/proc.c:134
    goexit()
0x226280 unknown pc

goroutine 1:
gosched+0x48 /home/joshi/go/src/pkg/runtime/proc.c:515
    gosched()
chanrecv+0x2d3 /home/joshi/go/src/pkg/runtime/chan.c:319
    chanrecv(0x2667e0, 0x211f8c, 0x0, 0x2130d8)
runtime·chanrecv1+0x4e /home/joshi/go/src/pkg/runtime/chan.c:415
    runtime·chanrecv1(0x2667e0, 0x80c9a54)
testing·Main+0x25f /home/joshi/go/src/pkg/testing/testing.go:132
    testing·Main(0x80c9a3c, 0xb)
main·main+0x29 /home/joshi/go/src/pkg/net/_testmain.go:21
    main·main()
mainstart+0xf /home/joshi/go/src/pkg/runtime/386/asm.s:81
    mainstart()
goexit /home/joshi/go/src/pkg/runtime/proc.c:134
    goexit()
eax     0x1de05000000000
ebx     0x1de05000212f10
ecx     0x1de050080a9104
edx     0x1de05000210910
edi     0x1de05000212f10
esi     0x1de05000212ee8
ebp     0x1de05000000001
esp     0x1de05000212ec4
eip     0x1de05008052840
eflags  0x1de05000000246
cs      0x1de05000000073
fs      0x1de05000000000
gs      0x1de0500000003f
make[1]: *** [test] Error 2
make[1]: Leaving directory `/home/joshi/go/src/pkg/net'
make: *** [net.test] Error 2

Compilation exited abnormally with code 2 at Tue Nov 10 22:50:11

What is your $GOOS?  $GOARCH?

linux
386

Which revision are you sync'ed to?  (hg log -l 1)

changeset:   3952:64e703cb307d
tag:         tip
user:        Russ Cox <[email protected]>
date:        Tue Nov 10 14:09:01 2009 -0800
summary:     update video links

Please provide any additional information below.

I reported a similar problem before. Even though the all.bash failed, I was
able to compile and run hello,go and echo.go programs. Is the install
successful or not?

Segmentation fault on OS X 10.5 386 for "net" test

by rasmusfabbe:

What steps will reproduce the problem?
1. checkout go as described in http://golang.org/doc/install.html and cd $GOROOT/src
2. ./go.bash

What is the expected output?
No errors

What do you see instead?
/Users/rasmus/bin/gotest: line 141: 25618 Segmentation fault      $E ./$O.out
"$@"

What is your $GOOS?  $GOARCH?
$ env | grep '^GO'
GOARCH=386
GOROOT=/Users/rasmus/src/go
GOOS=darwin


Which revision are you sync'ed to?  (hg log -l 1)
changeset:   3952:64e703cb307d
tag:         tip
user:        Russ Cox <[email protected]>
date:        Tue Nov 10 14:09:01 2009 -0800
summary:     update video links

Please provide any additional information below.
I'm attaching a complete transcript.

Attachments:

  1. go-rmb-transcript.sh (103693 bytes)

"throw: index out of range" and "unknown pc" running network tests on Virtuozzo-virtualized Linux/amd64 system

by montsamu:

What steps will reproduce the problem?
1. attempt to run ./all.bash on a Virtuozzo-virtualized Linux/amd64 system

What is the expected output? What do you see instead?

Expected output is the completed build/test message as described in the 
install docs.

Actual result is:

make[2]: Entering directory `/home/sam/go/src/pkg/net'
6g -o _gotest_.6 dnsclient.go dnsconfig.go dnsmsg.go fd.go fd_linux.go 
ip.go ipsock.go net.go parse.go port.go sock.go tcpsock.go udpsock.go 
unixsock.go    dialgoogle_test.go ip_test.go net_test.go parse_test.go 
port_test.go server_test.go timeout_test.go
rm -f _test/net.a
gopack grc _test/net.a _gotest_.6
make[2]: Leaving directory `/home/sam/go/src/pkg/net'
throw: index out of range

panic PC=0x2aaaaab32d38
throw+0x3e /home/sam/go/src/pkg/runtime/runtime.c:74
        throw(0x47f060, 0x0)
runtime·throwindex+0x1c /home/sam/go/src/pkg/runtime/runtime.c:47
        runtime·throwindex()
net·hostPortToIP+0x19a /home/sam/go/src/pkg/net/ipsock.go:199
        net·hostPortToIP(0x446170, 0x0, 0x3, 0x0, 0x464280, ...)
net·ResolveTCPAddr+0x34 /home/sam/go/src/pkg/net/tcpsock.go:61
        net·ResolveTCPAddr(0x464280, 0x0, 0xf, 0x0, 0x4462f0, ...)
net·Dial+0x2a3 /home/sam/go/src/pkg/net/net.go:133
        net·Dial(0x446170, 0x0, 0x3, 0x0, 0x4462f0, ...)
net·TestDialError+0xbc /home/sam/go/src/pkg/net/net_test.go:56
        net·TestDialError(0xaaba0bc0, 0x2aaa)
testing·tRunner+0x22 /home/sam/go/src/pkg/testing/testing.go:105
        testing·tRunner(0xaaba0bc0, 0x2aaa, 0x494a28, 0x0)
goexit /home/sam/go/src/pkg/runtime/proc.c:134
        goexit()
0x2aaaaaba0bc0 unknown pc

goroutine 3:
runtime·entersyscall+0x50 /home/sam/go/src/pkg/runtime/proc.c:539
        runtime·entersyscall()
syscall·Syscall6+0x5 /home/sam/go/src/pkg/syscall/asm_linux_amd64.s:41
        syscall·Syscall6()
syscall·EpollWait+0x84 
/home/sam/go/src/pkg/syscall/zsyscall_linux_amd64.go:132
        syscall·EpollWait(0x6, 0x2aaa, 0xaab64a00, 0x2aaa, 0x1, ...)
net·*pollster·WaitFD+0xb5 /home/sam/go/src/pkg/net/fd_linux.go:116
        net·*pollster·WaitFD(0xaab2cc80, 0x2aaa, 0x38fd0ce0, 0x0, 0x72, 
...)
net·*pollServer·Run+0x9e /home/sam/go/src/pkg/net/fd.go:237
        net·*pollServer·Run(0xaaaf3380, 0x2aaa)
goexit /home/sam/go/src/pkg/runtime/proc.c:134
        goexit()
0x2aaaaaaf3380 unknown pc

goroutine 1:
gosched+0x34 /home/sam/go/src/pkg/runtime/proc.c:515
        gosched()
chanrecv+0x318 /home/sam/go/src/pkg/runtime/chan.c:319
        chanrecv(0xaab51280, 0x2aaa, 0xaab31f68, 0x2aaa, 0x0, ...)
runtime·chanrecv1+0x50 /home/sam/go/src/pkg/runtime/chan.c:415
        runtime·chanrecv1(0xaab51280, 0x2aaa)
testing·Main+0x263 /home/sam/go/src/pkg/testing/testing.go:132
        testing·Main(0x4949f8, 0x0)
main·main+0x23 /home/sam/go/src/pkg/net/_testmain.go:21
        main·main()
mainstart+0xf /home/sam/go/src/pkg/runtime/amd64/asm.s:55
        mainstart()
goexit /home/sam/go/src/pkg/runtime/proc.c:134
        goexit()
make[1]: *** [test] Error 2
make[1]: Leaving directory `/home/sam/go/src/pkg/net'
make: *** [net.test] Error 2


What is your $GOOS?  $GOARCH?

sam@sol:~/go/src$ env | grep GO
GOARCH=amd64
GOROOT=/home/sam/go
GOOS=linux

Which revision are you sync'ed to?  (hg log -l 1)

sam@sol:~/go/src$ hg log -l 1
changeset:   3952:64e703cb307d
tag:         tip
user:        Russ Cox <[email protected]>
date:        Tue Nov 10 14:09:01 2009 -0800
summary:     update video links

Please provide any additional information below.

sam@sol:~/go/src$ cat /etc/issue
Ubuntu 8.04.3 LTS \n \l

sam@sol:~/go/src$ uname -a
Linux sol...... 2.6.18-53.1.19.el5.028stab053.14 #1 SMP Thu May 8 16:29:13 
MSD 2008 x86_64 GNU/Linux

type.h:43 chan.c:6 incomplete structure element: m

by Michaelian.Ennis:

What steps will reproduce the problem?
1.  Using OS X Snow Leopard
2. Compiling from the termnial


What is the expected output? What do you see instead?

type.h:43 chan.c:6 incomplete structure element: m
type.h:66 chan.c:6 incomplete structure element: m
warning: chan.c:1011 no return at end of function: gcd


What is your $GOOS?  $GOARCH?
GOARCH=386
GOOS=darwin

Which revision are you sync'ed to?  (hg log -l 1)

changeset:   3976:cf1b54c30bc1
tag:         tip
user:        Russ Cox <[email protected]>
date:        Tue Nov 10 20:11:16 2009 -0800
summary:     move release tag

Please provide any additional information below.
http://pastie.org/693251

cgo panic in main·*Prog·loadDebugInfo

by changsijay:

What steps will reproduce the problem?
./all.bash


What is the expected output? What do you see instead?
expected: 
0 known bugs; 0 unexpected bugs
I saw:
panic PC=0x4007fc38
throw+0x46 /home/csj/go/src/pkg/runtime/runtime.c:74
    throw(0x80c5403, 0x4007fc70)
runtime·mapaccess1+0x6c /home/csj/go/src/pkg/runtime/hashmap.c:769
    runtime·mapaccess1(0x40047780, 0x400405e0)
main·*Prog·loadDebugInfo+0xd83 /home/csj/go/src/cmd/cgo/gcc.go:164
    main·*Prog·loadDebugInfo(0x400475a0, 0x56)
main·main+0x36a /home/csj/go/src/cmd/cgo/main.go:66
    main·main()
mainstart+0xf /home/csj/go/src/pkg/runtime/386/asm.s:81
    mainstart()
goexit /home/csj/go/src/pkg/runtime/proc.c:135
    goexit()
make: *** [file.cgo1.go] Error 2


What is your $GOOS?  $GOARCH?
GOOS=linux
GOARCH=386

Which revision are you sync'ed to?  (hg log -l 1)
changeset:   3977:a522a4541e0e

Please provide any additional information below.
gcc --version
gcc (GCC) 4.4.2

but ~/bin already has the compiler in it, and I compile hello world passed.

On linux/amd64 you also need sudo aptitude install ed

by montsamu:

What steps will reproduce the problem?
1. try to build the system on a minimal Linux system without ed
2. run ./all.bash

What is the expected output? What do you see instead?

Expected output is the completed build message as described in the install 
doc.

Actual output is:

mkenam: line 31: /bin/ed: No such file or directory

What is your $GOOS?  $GOARCH?

sam@sol:~$ env | grep GO
GOARCH=amd64
GOROOT=/home/sam/go
GOOS=linux

Which revision are you sync'ed to?  (hg log -l 1)

sam@sol:~/go/src$ hg log -l 1
changeset:   3952:64e703cb307d
tag:         tip
user:        Russ Cox <[email protected]>
date:        Tue Nov 10 14:09:01 2009 -0800
summary:     update video links

Please provide any additional information below.

Running sudo aptitude install ed and then re-running ./all.bash does not 
give this error.

SIGTRAP when gopack grc _test/net.a _gotest_.8

by cnhackTNT:

What steps will reproduce the problem?
1.set GOOS, GOARCH, GOBIN properly
2.in src/, run ./all.bash
3.will recv a SIGTRAP when gopack grc _test/net.a _gotest_.8

What is your $GOOS?  $GOARCH?

GOBIN=/home/tsing/dev/go/bin
GOARCH=386
GOROOT=/home/tsing/dev/go
GOOS=linux

Linux 2.6.28-16-generic

Which revision are you sync'ed to?  (hg log -l 1)

hg log -l 1
changeset:   3952:64e703cb307d
tag:         tip
user:        Russ Cox <[email protected]>
date:        Tue Nov 10 14:09:01 2009 -0800
summary:     update video links

Please provide any additional information below.

Error log:
------
8g -o _gotest_.8 dnsclient.go dnsconfig.go dnsmsg.go fd.go fd_linux.go
ip.go ipsock.go net.go parse.go port.go sock.go tcpsock.go udpsock.go
unixsock.go    dialgoogle_test.go ip_test.go net_test.go parse_test.go
port_test.go server_test.go timeout_test.go
rm -f _test/net.a
gopack grc _test/net.a _gotest_.8 
make[2]: Leaving directory `/home/tsing/dev/go/src/pkg/net'
SIGTRAP: trace trap
Faulting address: 0x0
PC=0x8053403

net·hostPortToIP+0x168 /home/tsing/dev/go/src/pkg/net/ipsock.go:201
  net·hostPortToIP(0x809a08c, 0x3, 0x80ad2fc, 0xf, 0x0, ...)
net·ResolveTCPAddr+0x36 /home/tsing/dev/go/src/pkg/net/tcpsock.go:65
  net·ResolveTCPAddr(0x80ad2fc, 0xf, 0x809a0d0, 0x0)
net·Dial+0x28e /home/tsing/dev/go/src/pkg/net/net.go:130
  net·Dial(0x809a08c, 0x3, 0x809a0d0, 0x0, 0x80ad2fc, ...)
net·TestDialError+0xf7 /home/tsing/dev/go/src/pkg/net/net_test.go:56
  net·TestDialError(0x400c97f0, 0x1)
testing·tRunner+0x36 /home/tsing/dev/go/src/pkg/testing/testing.go:111
  testing·tRunner(0x400c97f0, 0x80cdc44, 0x0)
goexit /home/tsing/dev/go/src/pkg/runtime/proc.c:134
  goexit()
0x400c97f0 unknown pc

goroutine 3:
runtime·entersyscall+0x60 /home/tsing/dev/go/src/pkg/runtime/proc.c:539
  runtime·entersyscall()
syscall·Syscall6+0x5 /home/tsing/dev/go/src/pkg/syscall/asm_linux_386.s:665
  syscall·Syscall6()
syscall·EpollWait+0x9a
/home/tsing/dev/go/src/pkg/syscall/zsyscall_linux_386.go:132
  syscall·EpollWait(0x6, 0x400bc230, 0x1, 0x1, 0x1ea, ...)
net·*pollster·WaitFD+0x111 /home/tsing/dev/go/src/pkg/net/fd_linux.go:116
  net·*pollster·WaitFD(0x400424f0, 0x1d332c88, 0x0, 0x0, 0x0, ...)
net·*pollServer·Run+0xd9 /home/tsing/dev/go/src/pkg/net/fd.go:237
  net·*pollServer·Run(0x4008e320, 0x80cf56c)
goexit /home/tsing/dev/go/src/pkg/runtime/proc.c:134
  goexit()
0x4008e320 unknown pc

goroutine 1:
gosched+0x48 /home/tsing/dev/go/src/pkg/runtime/proc.c:515
  gosched()
chanrecv+0x2d3 /home/tsing/dev/go/src/pkg/runtime/chan.c:319
  chanrecv(0x400ce6f0, 0x4007bf8c, 0x0, 0x4007d0d8)
runtime·chanrecv1+0x4e /home/tsing/dev/go/src/pkg/runtime/chan.c:415
  runtime·chanrecv1(0x400ce6f0, 0x80cdc44)
testing·Main+0x263 /home/tsing/dev/go/src/pkg/testing/testing.go:138
  testing·Main(0x80cdc2c, 0xb)
main·main+0x29 /home/tsing/dev/go/src/pkg/net/_testmain.go:21
  main·main()
mainstart+0xf /home/tsing/dev/go/src/pkg/runtime/386/asm.s:81
  mainstart()
goexit /home/tsing/dev/go/src/pkg/runtime/proc.c:134
  goexit()
eax     0x4007a0004007ce3c
ebx     0x4007a0004007cf10
ecx     0x4007a000080ad2fc
edx     0x4007a000400481b4
edi     0x4007a0004007cf10
esi     0x4007a0004007cee8
ebp     0x4007a00000000001
esp     0x4007a0004007cec4
eip     0x4007a00008053403
eflags  0x4007a00000200246
cs      0x4007a00000000073
fs      0x4007a00000000000
gs      0x4007a0000000003f
/home/tsing/dev/go/bin/gotest: line 141: 13758 Trace/breakpoint trap   $E
./$O.out "$@"
make[1]: *** [test] Error 133
make[1]: Leaving directory `/home/tsing/dev/go/src/pkg/net'
make: *** [net.test] Error 2

make: don't know how to make dofmt.o

by nickthepreserver:

What steps will reproduce the problem?
1. Pull source from repo
2. Set environment variables
3. Run all.bash

What is the expected output? What do you see instead?
What I am expecting is a successful build, but what I'm receiving is this
error:

rm -f *.o *.6 6.out lib9.a
rm -f bbuffered.o bfildes.o bflush.o bgetc.o bgetrune.o bgetd.o binit.o
boffset.o bprint.o bputc.o bputrune.o brdline.o brdstr.o bread.o bseek.o
bwrite.o *.6 6.out libbio.a
rm -f *.o *.so
rm -f *.o libmach.a
rm -f *.o *.6 enam.c 6.out a.out y.tab.h y.tab.c cc.ao
rm -f *.o 6l *.6 enam.c 6.out a.out
rm -f *.o 6a *.6 enam.c 6.out a.out y.tab.h y.tab.c
rm -f *.o 6c *.6 enam.c 6.out a.out
rm -f *.o 8l *.8 enam.c 8.out a.out
rm -f *.o 8a *.6 enam.c 6.out a.out y.tab.h y.tab.c
rm -f *.o 8c *.8 8.out a.out
rm -f *.o 8g *.8 enam.c 8.out a.out
rm -f *.o 5l *.5 enam.c 5.out a.out
rm -f *.o 5a *.5 enam.c 5.out a.out y.tab.h y.tab.c
rm -f *.o 5c *.5 enam.c 5.out a.out
rm -f *.o 5g *.5 enam.c 5.out a.out
rm -f *.[568o] enam.c [568].out a.out y.tab.h y.tab.c gc.ao mkbuiltin1
builtin.c _builtin.c
rm -f 6g enam.c 6.out a.out *.o *.6
rm -f *.o gopack
rm -f *.o 6nm
rm -f *.[568vq] cgo 
rm -f *.o 6cov
rm -f *.[568vq] ebnflint 
rm -f *.o godefs
rm -f *.[568vq] godoc 
rm -f *.[568vq] gofmt 
rm -f *.[568vq] goyacc 
rm -f *.[568vq] hgpatch 
rm -f *.o 6prof
rm -rf *.[568vqo] *.a [568vq].out *.cgo[12].go *.cgo[34].c *.so _obj _test
_testmain.go pi fib
rm -rf *.[568vqo] *.a [568vq].out *.cgo[12].go *.cgo[34].c *.so _obj _test
_testmain.go hello fib chain run.out


%%%% making lib9 %%%%

gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c _p9dir.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c _exits.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c argv0.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c atoi.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c await.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c cleanname.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c create.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c dirfstat.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c dirfwstat.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c dirstat.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c dirwstat.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c dup.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c errstr.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c exec.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c execl.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c exitcode.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c exits.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c getenv.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c getfields.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c getuser.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c jmp.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c getwd.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c main.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c nan.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c notify.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c nulldir.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c open.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c pipe.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c readn.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c rfork.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c seek.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c strecpy.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c sysfatal.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c tokenize.c
gcc -ggdb -I/home/nik/go/include -O2 -fno-inline  -c time.c
make: make: don't know how to make dofmt.o. Stop in /home/nik/go/src/lib9.


What is your $GOOS?  $GOARCH?
merope% export|grep GO
GOARCH=386
GOBIN=/home/nik/lbin
GOOS=nacl
GOROOT=/home/nik/go


Which revision are you sync'ed to?  (hg log -l 1)
merope% hg log -l 1
changeset:   3975:b51fd2d6c160
tag:         tip
user:        Kevin Ballard <[email protected]>
date:        Tue Nov 10 20:05:24 2009 -0800
summary:     Implement new emacs command M-x gofmt


Please provide any additional information below.

all.bash segfault

by telugujoshi:

What steps will reproduce the problem?
1. Downloaded using hg command
2. cd $GOROOT/src; ./all.bash
3.

What is the expected output? What do you see instead?

Expected Output:

--- cd ../test
N known bugs; 0 unexpected bugs

What I see:
rm -f _test/http.a
gopack grc _test/http.a _gotest_.8 
make[2]: Leaving directory `/home/joshi/go/src/pkg/http'
SIGSEGV: segmentation violation
Faulting address: 0x4
PC=0x806d062

net·*file·getLineFromData+0x3e /home/joshi/go/src/pkg/net/parse.go:23
    net·*file·getLineFromData(0x0, 0x0, 0x0, 0x0, 0x0, ...)
net·*file·readLine+0x30 /home/joshi/go/src/pkg/net/parse.go:42
    net·*file·readLine(0x0, 0x0, 0x0, 0xac8260, 0xac8d20, ...)
net·readServices+0x6d /home/joshi/go/src/pkg/net/port.go:21
    net·readServices()
once·Do+0xa3 /home/joshi/go/src/pkg/once/once.go:48
    once·Do(0x806df0a, 0xffffffff)
net·LookupPort+0x31 /home/joshi/go/src/pkg/net/port.go:52
    net·LookupPort(0x809e08c, 0x3, 0xaaba4f, 0x4, 0x0, ...)
net·hostPortToIP+0x328 /home/joshi/go/src/pkg/net/ipsock.go:210
    net·hostPortToIP(0x809e08c, 0x3, 0xaaba40, 0x13, 0x0, ...)
net·ResolveTCPAddr+0x36 /home/joshi/go/src/pkg/net/tcpsock.go:61
    net·ResolveTCPAddr(0xaaba40, 0x13, 0x809e0cc, 0x0)
net·Dial+0x27e /home/joshi/go/src/pkg/net/net.go:133
    net·Dial(0x809e08c, 0x3, 0x809e0cc, 0x0, 0xaaba40, ...)
http·send+0x1b6 /home/joshi/go/src/pkg/http/client.go:121
    http·send(0xa7adc0, 0x20, 0x0, 0x0)
http·Get+0x149 /home/joshi/go/src/pkg/http/client.go:190
    http·Get(0x80a94dc, 0x20, 0x0, 0x0, 0x0, ...)
http·TestClient+0x2b /home/joshi/go/src/pkg/http/client_test.go:19
    http·TestClient(0xaaac30, 0x0)
testing·tRunner+0x36 /home/joshi/go/src/pkg/testing/testing.go:105
    testing·tRunner(0xaaac30, 0x80d3200, 0x0)
goexit /home/joshi/go/src/pkg/runtime/proc.c:134
    goexit()
0xaaac30 unknown pc

goroutine 3:
runtime·entersyscall+0x60 /home/joshi/go/src/pkg/runtime/proc.c:539
    runtime·entersyscall()
syscall·Syscall6+0x5 /home/joshi/go/src/pkg/syscall/asm_linux_386.s:40
    syscall·Syscall6()
syscall·EpollWait+0x7c /home/joshi/go/src/pkg/syscall/zsyscall_linux_386.go:132
    syscall·EpollWait(0x6, 0xac2230, 0x1, 0x1, 0x3bb, ...)
net·*pollster·WaitFD+0xff /home/joshi/go/src/pkg/net/fd_linux.go:116
    net·*pollster·WaitFD(0xa76500, 0x38e9d6e8, 0x0, 0xa7e150, 0x72, ...)
net·*pollServer·Run+0xc3 /home/joshi/go/src/pkg/net/fd.go:237
    net·*pollServer·Run(0xac8000, 0x80d4ee8)
goexit /home/joshi/go/src/pkg/runtime/proc.c:134
    goexit()
0xac8000 unknown pc

goroutine 1:
gosched+0x48 /home/joshi/go/src/pkg/runtime/proc.c:515
    gosched()
chanrecv+0x2d3 /home/joshi/go/src/pkg/runtime/chan.c:319
    chanrecv(0xaa97b0, 0xaadf8c, 0x0, 0xaaf0d8)
runtime·chanrecv1+0x4e /home/joshi/go/src/pkg/runtime/chan.c:415
    runtime·chanrecv1(0xaa97b0, 0x80d3200)
testing·Main+0x25f /home/joshi/go/src/pkg/testing/testing.go:132
    testing·Main(0x80d3200, 0xa)
main·main+0x29 /home/joshi/go/src/pkg/http/_testmain.go:20
    main·main()
mainstart+0xf /home/joshi/go/src/pkg/runtime/386/asm.s:81
    mainstart()
goexit /home/joshi/go/src/pkg/runtime/proc.c:134
    goexit()
eax     0xa7a05000000000
ebx     0xa7a05000000000
ecx     0xa7a05000a7a410
edx     0xa7a05000000004
edi     0xa7a05000aaece4
esi     0xa7a05000000004
ebp     0xa7a05000aaecd4
esp     0xa7a05000aaec9c
eip     0xa7a0500806d062
eflags  0xa7a05000010202
cs      0xa7a05000000073
fs      0xa7a05000000000
gs      0xa7a0500000003f
make[1]: *** [test] Error 2
make[1]: Leaving directory `/home/joshi/go/src/pkg/http'
make: *** [http.test] Error 2


What is your $GOOS?  $GOARCH?

GOOS=linux
GOARCH=386

Which revision are you sync'ed to?  (hg log -l 1)

changeset:   3952:64e703cb307d
tag:         tip
user:        Russ Cox <[email protected]>
date:        Tue Nov 10 14:09:01 2009 -0800
summary:     update video links

Please provide any additional information below.

None

8c -a proc.c aborts in runtime

by cdsund:

What steps will reproduce the problem?
1. ./all.bash

What is the expected output? What do you see instead?
No errors expected.

%%%% making pkg %%%%

cd runtime && make install
cd unicode && make install
cd sort && make install
cd math && make install
make[1]: Entering directory `/home/chad/go/src/pkg/runtime'
8g -o _go_.8 extern.go type.go
make[1]: Entering directory `/home/chad/go/src/pkg/unicode'
8g -o _go_.8 digit.go letter.go tables.go
make[1]: Entering directory `/home/chad/go/src/pkg/sort'
8g -o _go_.8 sort.go
8c -a proc.c >runtime.acid.386
/bin/sh: line 1: 28954 Aborted                 8c -a proc.c > runtime.acid.386
make[1]: *** [runtime.acid.386] Error 134
make[1]: Leaving directory `/home/chad/go/src/pkg/runtime'
make: *** [runtime.install] Error 2
make: *** Waiting for unfinished jobs....
make[1]: Entering directory `/home/chad/go/src/pkg/math'
8g -o _go_.8 asin.go atan.go atan2.go bits.go const.go exp.go fabs.go
floor.go fmod.go hypot.go log.go pow.go pow10.go sin.go sinh.go sqrt.go
tan.go tanh.go unsafe.go
rm -f _obj/sort.a
gopack grc _obj/sort.a _go_.8
cp _obj/sort.a /home/chad/go/pkg/linux_386/sort.a
make[1]: Leaving directory `/home/chad/go/src/pkg/sort'
rm -f _obj/math.a
gopack grc _obj/math.a _go_.8
cp _obj/math.a /home/chad/go/pkg/linux_386/math.a
make[1]: Leaving directory `/home/chad/go/src/pkg/math'
rm -f _obj/unicode.a
gopack grc _obj/unicode.a _go_.8
cp _obj/unicode.a /home/chad/go/pkg/linux_386/unicode.a
make[1]: Leaving directory `/home/chad/go/src/pkg/unicode'
[chad@localhost src]$

What is your $GOOS?  $GOARCH?
GOOS=linux, GOARCH=386

Which revision are you sync'ed to?  (hg log -l 1)
3977:a522a4541e0e

Please provide any additional information below.
pclinuxos: kernel 2.6.26.8.tex3

$GOROOT/src/Make.linux/amd64: No such file or directory

by bitjam:

What steps will reproduce the problem?
1. Setup environment
2. Download source
3. cd $GOROOT/src && ./all.bash

What is the expected output? What do you see instead?

Expected:

--- cd ../test
N known bugs; 0 unexpected bugs

Got:

Makefile:5: $GOROOT/src/Make.linux/amd64: No such file or directory
make: *** No rule to make target `$GOROOT/src/Make.linux/amd64'.  Stop.
[etc]

What is your $GOOS?  $GOARCH?

$ env | grep '^GO' 
GOOGLEEARTH_DATA_PATH=/opt/googleearth
GOROOT=/home/jbowlin/Projects/Go
GOOS=linux
GOARCH=linux/amd64
GOBIN=/usr/local/bin

Which revision are you sync'ed to?  (hg log -l 1)
$ cd $GOROOT && hg log -l 1
changeset:   3952:64e703cb307d
tag:         tip
user:        Russ Cox <[email protected]>
date:        Tue Nov 10 14:09:01 2009 -0800
summary:     update video links

Please provide any additional information below.

net: TestDialError fails

by limit.usus:

What steps will reproduce the problem?
1.run make.bash
2.run run.bash
3.

What is the expected output? What do you see instead?
I expected all tests will be passed but caught error.
Error occurs while running test program:
 %  ./run.bash
-snip-
make[1]: Entering directory `/home/limit/hg/go/src/pkg/net'
gotest
make[2]: Entering directory `/home/limit/hg/go/src/pkg/net'
rm -f _test/net.a _gotest_.6
make[2]: Leaving directory `/home/limit/hg/go/src/pkg/net'
make[2]: Entering directory `/home/limit/hg/go/src/pkg/net'
6g -o _gotest_.6 dnsclient.go dnsconfig.go dnsmsg.go fd.go fd_linux.go
ip.go ipsock.go net.go parse.go port.go sock.go tcpsock.go udpsock.go
unixsock.go    dialgoogle_test.go ip_test.go net_test.go parse_test.go
port_test.go server_test.go timeout_test.go
rm -f _test/net.a
gopack grc _test/net.a _gotest_.6 
make[2]: Leaving directory `/home/limit/hg/go/src/pkg/net'
throw: index out of range

panic PC=0x2ba316c10d38
throw+0x3e /home/limit/hg/go/src/pkg/runtime/runtime.c:74
        throw(0x47f060, 0x0)
runtime·throwindex+0x1c /home/limit/hg/go/src/pkg/runtime/runtime.c:47
        runtime·throwindex()
net·hostPortToIP+0x19a /home/limit/hg/go/src/pkg/net/ipsock.go:199
        net·hostPortToIP(0x446170, 0x0, 0x3, 0x0, 0x464280, ...)
net·ResolveTCPAddr+0x34 /home/limit/hg/go/src/pkg/net/tcpsock.go:61
        net·ResolveTCPAddr(0x464280, 0x0, 0xf, 0x0, 0x4462f0, ...)
net·Dial+0x2a3 /home/limit/hg/go/src/pkg/net/net.go:133
        net·Dial(0x446170, 0x0, 0x3, 0x0, 0x4462f0, ...)
net·TestDialError+0xbc /home/limit/hg/go/src/pkg/net/net_test.go:56
        net·TestDialError(0x16c5dd20, 0x2ba3)
testing·tRunner+0x22 /home/limit/hg/go/src/pkg/testing/testing.go:105
        testing·tRunner(0x16c5dd20, 0x2ba3, 0x494a28, 0x0)
goexit /home/limit/hg/go/src/pkg/runtime/proc.c:134
        goexit()
0x2ba316c5dd20 unknown pc

goroutine 3:
runtime·entersyscall+0x50 /home/limit/hg/go/src/pkg/runtime/proc.c:539
        runtime·entersyscall()
syscall·Syscall6+0x5 /home/limit/hg/go/src/pkg/syscall/asm_linux_amd64.s:41
        syscall·Syscall6()
syscall·EpollWait+0x84
/home/limit/hg/go/src/pkg/syscall/zsyscall_linux_amd64.go:132
        syscall·EpollWait(0x6, 0x2ba3, 0x16c2f120, 0x2ba3, 0x1, ...)
net·*pollster·WaitFD+0xb5 /home/limit/hg/go/src/pkg/net/fd_linux.go:116
        net·*pollster·WaitFD(0x16c09cb0, 0x2ba3, 0x399ca458, 0x0, 0x72, ...)
net·*pollServer·Run+0x9e /home/limit/hg/go/src/pkg/net/fd.go:237
        net·*pollServer·Run(0x16bcb5c0, 0x2ba3)
goexit /home/limit/hg/go/src/pkg/runtime/proc.c:134
        goexit()
0x2ba316bcb5c0 unknown pc

goroutine 1:
gosched+0x34 /home/limit/hg/go/src/pkg/runtime/proc.c:515
        gosched()
chanrecv+0x318 /home/limit/hg/go/src/pkg/runtime/chan.c:319
        chanrecv(0x16c61c80, 0x2ba3, 0x16c0ff68, 0x2ba3, 0x0, ...)
runtime·chanrecv1+0x50 /home/limit/hg/go/src/pkg/runtime/chan.c:415
        runtime·chanrecv1(0x16c61c80, 0x2ba3)
testing·Main+0x263 /home/limit/hg/go/src/pkg/testing/testing.go:132
        testing·Main(0x4949f8, 0x0)
main·main+0x23 /home/limit/hg/go/src/pkg/net/_testmain.go:21
        main·main()
mainstart+0xf /home/limit/hg/go/src/pkg/runtime/amd64/asm.s:55
        mainstart()
goexit /home/limit/hg/go/src/pkg/runtime/proc.c:134
        goexit()
make[1]: *** [test] Error 2
make[1]: Leaving directory `/home/limit/hg/go/src/pkg/net'
make: *** [net.test] Error 2

What is your $GOOS?  $GOARCH?
 % echo $GOARCH
amd64
 % echo $GOOS
linux

Which revision are you sync'ed to?  (hg log -l 1)
 % hg log -l 1
changeset:   3952:64e703cb307d
tag:         tip
user:        Russ Cox <[email protected]>
date:        Tue Nov 10 14:09:01 2009 -0800
summary:     update video links

Please provide any additional information below.

cgo panic in main·*Prog·loadDebugInfo

by Sean.Stangl:

What steps will reproduce the problem?
1. Run the tests, for example by src/all.bash.

What is the expected output? What do you see instead?

The test does not pass; instead, the following error is reported:

---------------------------
--- cd ../misc/cgo/stdio
rm -rf *.[568vqo] *.a [568vq].out *.cgo[12].go *.cgo[34].c *.so _obj _test
_testmain.go hello fib chain run.out
cgo  file.go
could not determine kind of name for C.CString
could not determine kind of name for C.puts
could not determine kind of name for C.fflushstdout
could not determine kind of name for C.free
throw: runtime·mapaccess1: key not in map

panic PC=0x7f2a0f239a08
throw+0x3e /home/sean/dev/go/src/pkg/runtime/runtime.c:74
    throw(0x4de2cf, 0x0)
runtime·mapaccess1+0x74 /home/sean/dev/go/src/pkg/runtime/hashmap.c:769
    runtime·mapaccess1(0xf1f18c0, 0x7f2a)
main·*Prog·loadDebugInfo+0xa88 /home/sean/dev/go/src/cmd/cgo/gcc.go:164
    main·*Prog·loadDebugInfo(0xf261280, 0x7f2a)
main·main+0x352 /home/sean/dev/go/src/cmd/cgo/main.go:66
    main·main()
mainstart+0xf /home/sean/dev/go/src/pkg/runtime/amd64/asm.s:55
    mainstart()
goexit /home/sean/dev/go/src/pkg/runtime/proc.c:135
    goexit()
make: *** [file.cgo1.go] Ошибка 2
---------------------------

What is your $GOOS?  $GOARCH?
linux, amd64.

Which revision are you sync'ed to?  (hg log -l 1)
3976:cf1b54c30bc1 (Tue Nov 10 20:11:16 2009 -0800)

cmd/cgo: fails with gcc 4.4.1

by [email protected]:

What steps will reproduce the problem?
1. Run build on Ubuntu 9.10, which uses gcc 4.4.1

What is the expected output? What do you see instead?

Cgo fails with the following error:

{{{
go/misc/cgo/stdio$ make
cgo  file.go
could not determine kind of name for C.CString
could not determine kind of name for C.puts
could not determine kind of name for C.fflushstdout
could not determine kind of name for C.free
throw: sys·mapaccess1: key not in map

panic PC=0x2b01c2b96a08
throw+0x33 /media/scratch/workspace/go/src/pkg/runtime/runtime.c:71
    throw(0x4d2daf, 0x0)
sys·mapaccess1+0x74 
/media/scratch/workspace/go/src/pkg/runtime/hashmap.c:769
    sys·mapaccess1(0xc2b51930, 0x2b01)
main·*Prog·loadDebugInfo+0xa67 
/media/scratch/workspace/go/src/cmd/cgo/gcc.go:164
    main·*Prog·loadDebugInfo(0xc2bc0000, 0x2b01)
main·main+0x352 
/media/scratch/workspace/go/src/cmd/cgo/main.go:68
    main·main()
mainstart+0xf 
/media/scratch/workspace/go/src/pkg/runtime/amd64/asm.s:55
    mainstart()
goexit /media/scratch/workspace/go/src/pkg/runtime/proc.c:133
    goexit()
make: *** [file.cgo1.go] Error 2
}}}

Please use labels and text to provide additional information.

http.TestClient and TestRedirect FAIL: Get http://www.google.com/robots.txt: unexpected EOF

by lcgong:

What steps will reproduce the problem?
1. ./all.bash
2.
3.

What is the expected output? What do you see instead?


--- FAIL: http.TestClient
    Get http://www.google.com/robots.txt: read
tcp:10.112.1.82:54219->216.239.61.104:80: connection reset by peer
--- FAIL: http.TestRedirect
    Get http://codesearch.google.com/: unexpected EOF
FAIL


What is your $GOOS?  $GOARCH?
linux/386

Which revision are you sync'ed to?  (hg log -l 1)

3973:aa68d0be67fa

Please provide any additional information below.

log_test fails because of ??? filename

by julians37:

What steps will reproduce the problem?
1. ./all.bash

What is the expected output? What do you see instead?

TestAllLog fails

What is your $GOOS?  $GOARCH?

linux_amd64

Which revision are you sync'ed to?  (hg log -l 1)

changeset:   3975:b51fd2d6c160
tag:         tip
user:        Kevin Ballard <[email protected]>
date:        Tue Nov 10 20:05:24 2009 -0800
summary:     Implement new emacs command M-x gofmt

Please provide any additional information below.

log.go's formatHeader seems to have trouble getting the stack frame. The 
same test passes no problem on an i686 machine.

make[2]: Leaving directory `/redacted/src/pkg/log'
--- FAIL: log.TestAllLog
        log output should match "^/[A-Za-z0-9_/\\-.]+\\.go:[0-9]+: hello 
23 world$" is "/???/log_test.go:60: hello 23 world"
        log output should match "^/[A-Za-z0-9_/\\-.]+\\.go:[0-9]+: hello 
23 world$" is "/???/log_test.go:58: hello 23 world"
        log output should match "^XXX[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-
9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\\.[0-9][0-9][0-9][0-9][0-9][0-
9] /[A-Za-z0-9_/\\-.]+\\.go:[0-9]+: hello 23 world$" is "XXX2009/1
1/11 20:36:28.877982 /???/log_test.go:60: hello 23 world"
        log output should match "^XXX[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-
9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\\.[0-9][0-9][0-9][0-9][0-9][0-
9] /[A-Za-z0-9_/\\-.]+\\.go:[0-9]+: hello 23 world$" is "XXX2009/1
1/11 20:36:28.878142 /???/log_test.go:58: hello 23 world"
FAIL
make[1]: *** [test] Error 1
make[1]: Leaving directory `/redacted/src/pkg/log'
make: *** [log.test] Error 2

$ uname -a
Linux heta 2.6.20.5_rsp_3.9 #1 SMP Wed Oct 14 16:24:34 EST 2009 
x86_64 x86_64 x86_64 GNU/Linux

$ gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE.

$ cat /etc/redhat-release 
CentOS release 5.3 (Final)

os_test.TestRemoveAll when running as root

Root can delete from a chmod 0 directory.

--- FAIL: os_test.TestRemoveAll
       RemoveAll "_obj/_TestRemoveAll_" succeeded with chmod 0
subdirectory?(extra *os.PathError=lstat _obj/_TestRemoveAll_: no such
file or directory)
FAIL

net: TestDialGoogle fails

by mafafa2:

What steps will reproduce the problem?

run ./all.bash


What is the expected output? What do you see instead?

I expect it to display:
--- cd ../test
N known bugs; 0 unexpected bugs

I see:

.
.
.
make[2]: Entering directory `/home/ricardo/go/src/pkg/net'
6g -o _gotest_.6 dnsclient.go dnsconfig.go dnsmsg.go fd.go fd_linux.go 
ip.go ipsock.go net.go parse.go port.go sock.go tcpsock.go udpsock.go 
unixsock.go    dialgoogle_test.go ip_test.go net_test.go parse_test.go 
port_test.go server_test.go timeout_test.go
rm -f _test/net.a
gopack grc _test/net.a _gotest_.6 
make[2]: Leaving directory `/home/ricardo/go/src/pkg/net'
--- FAIL: net.TestDialGoogle
    -- 74.125.19.99:80 --
    -- www.google.com:80 --
    -- 74.125.19.99:http --
    -- www.google.com:http --
    Dial("tcp", "", "www.google.com:http") = _, dial tcp 
www.google.com:http: lookup www.google.com.supercable.net.ve. on 
128.107.241.185:53: no answer from server
    -- 074.125.019.099:0080 --
    -- [::ffff:74.125.19.99]:80 --
    -- [::ffff:4a7d:1363]:80 --
    -- [0:0:0:0:0000:ffff:74.125.19.99]:80 --
    -- [0:0:0:0:000000:ffff:74.125.19.99]:80 --
    -- [0:0:0:0:0:ffff::74.125.19.99]:80 --
FAIL
make[1]: *** [test] Error 1
make[1]: Leaving directory `/home/ricardo/go/src/pkg/net'
make: *** [net.test] Error 2

What is your $GOOS?  $GOARCH?

$GOOS=linux
$GOARCH=amd64

Which revision are you sync'ed to?  (hg log -l 1)

changeset:   3952:64e703cb307d
tag:         tip
user:        Russ Cox <[email protected]>
date:        Tue Nov 10 14:09:01 2009 -0800
summary:     update video links

Please provide any additional information below.

none

go-mode.el breaks when editing empty file

by kballard:

When trying to switch to go-mode on an empty buffer, a Lisp error is raised:

Debugger entered--Lisp error: (args-out-of-range 0 1)
  remove-list-of-text-properties(1 0 (go-mode-cs go-mode-nesting))
  go-mode()
  ...

Build fails on Linux/386 on Ubuntu 9.10

by NutDriverLefty:

What steps will reproduce the problem?
1. Follow the directions on http://golang.org/doc/install.html
2. Everything works up to the "Install Go" section
3. ./all.bash runs for a while then fails with two instances of 
"quietgcc: Command not found"

What is the expected output? What do you see instead?
"N known bugs; 0 unexpected bugs"

What is your $GOOS?  $GOARCH?
GOOS=linux
GOARCH=386

Which revision are you sync'ed to?  (hg log -l 1)
changeset:  3952:64e703cb307d
user:       Russ Cox <[email protected]>
date:       Tue Nov 10 14:09:01 2009 -0800
summary:    update video links


Please provide any additional information below.
Running on Ubuntu 9.10 with gcc 4.4.1, bison 2.4.1

Numeric literals with spaces as delimeters

by Serge.Sitnikov:

Please could you change the grammar to accept following numeric literals:

const
(
  nanoseconds_per_second = 1 000 000 000;
  packed_primes = 0x 02 03 05 07 0B 0D 11 13;
  epsilon = 0.000 001;
)

GNU Make 3.8.0's lastword seems broken

by julians37:

What steps will reproduce the problem?
What is the expected output? What do you see instead?

In src/Make.pkg, $(elem) is empty even though $(TARG) is not.

What is your $GOOS?  $GOARCH?

linux_386

Which revision are you sync'ed to?  (hg log -l 1)

3975:b51fd2d6c160

Please provide any additional information below.

GNU Make 3.8.0's lastword function appears to be broken. I've replaced it 
with the alternative suggested in Make's manual and that worked (even 
though the manual states the two are identical). Patch attached.

Attachments:

  1. golang_lastword.patch (433 bytes)

error in coments/documentation

by IvanGalin:

in file:
pkg/crypto/md5/md5.go

// New returns a Hash computing the SHA1 checksum.
func New() hash.Hash {

HTTP client&server tests fail. DNS_ServerName and URL_Target strings conjoined into nonsense.

by twitwad:

What steps will reproduce the problem?
1. Install 6g on Intel Mac running 10.6.1
2. ./all.bash
3.

What is the expected output? What do you see instead?
Expected:

--- cd ../test
N known bugs; 0 unexpected bugs

What I see:

rm -f _test/http.a _gotest_.6
6g -o _gotest_.6 client.go fs.go request.go server.go status.go url.go   
client_test.go request_test.go url_test.go
rm -f _test/http.a
gopack grc _test/http.a _gotest_.6 
--- FAIL: http.TestClient
    Get http://www.google.com/robots.txt: dial tcp www.google.com:http: lookup
www.google.com.hsd1.pa.comcast.net. on 68.87.75.198:53: no answer from server

What is your $GOOS?  $GOARCH?
GOARCH-amd64, GOOS=darwin

Which revision are you sync'ed to?  (hg log -l 1)
changeset:   3952:64e703cb307d
tag:         tip
user:        Russ Cox <[email protected]>
date:        Tue Nov 10 14:09:01 2009 -0800
summary:     update video links


Please provide any additional information below.
My ISP is Comcast.

net: TestDialGoogle fails on "tcp6" address family

by crythau:

What steps will reproduce the problem?
1. hg clone -r release https://go.googlecode.com/hg/ $GOROOT
2. bash all.bash
3.

What is the expected output? What do you see instead?

"N known bugs; 0 unexpected bugs" expected; instead:

--- FAIL: net.TestDialGoogle
        -- 74.125.19.99:80 --
        Dial("tcp6", "", "74.125.19.99:80") = _, dial tcp6 74.125.19.99:80: 
address family not supported by protocol
        -- www.google.com:80 --
        Dial("tcp6", "", "www.google.com:80") = _, dial tcp6 
72.14.213.103:80: address family not supported by protocol

etc.

What is your $GOOS?  $GOARCH?

GOOS=linux
GOARCH=386

Which revision are you sync'ed to?  (hg log -l 1)

changeset:   3952:64e703cb307d
tag:         tip
user:        Russ Cox <[email protected]>
date:        Tue Nov 10 14:09:01 2009 -0800
summary:     update video links

Please provide any additional information below.

>more /proc/version
Linux version 2.6.18-128.7.1.el5 ([email protected]) (gcc version 
4.1.2 20080704 (Red Hat 4.1.2-44)) #1 SMP Mon Aug 24 08:22:26 EDT 2009


Obviously an IPv6 issue, and no v6 interfaces are configured on the 
machine.

I have already used the name for *MY* programming language

by fmccabe:

I have been working on a programming language, also called Go, for the last 10 years.
There have 
been papers published on this and I have a book.

I would appreciate it if google changed the name of this language; as I do not want to
have to 
change my language!

net: TestDialError fails

by nick.fa.jones:

What steps will reproduce the problem?
1. all.bash


What is the expected output? What do you see instead?
expected:
PASS, nick, you are so cool

got:
nick@nickhq3:~/src/go/src/pkg/net$ make test
gotest
make[1]: Entering directory `/home/nick/src/go/src/pkg/net'
rm -f _test/net.a _gotest_.6
make[1]: Leaving directory `/home/nick/src/go/src/pkg/net'
make[1]: Entering directory `/home/nick/src/go/src/pkg/net'
6g -o _gotest_.6 dnsclient.go dnsconfig.go dnsmsg.go fd.go fd_linux.go 
ip.go ipsock.go net.go parse.go port.go sock.go tcpsock.go udpsock.go 
unixsock.go    dialgoogle_test.go ip_test.go net_test.go parse_test.go 
port_test.go server_test.go timeout_test.go
rm -f _test/net.a
gopack grc _test/net.a _gotest_.6
make[1]: Leaving directory `/home/nick/src/go/src/pkg/net'
throw: index out of range

panic PC=0x2b3ded88cd38
throw+0x3e /home/nick/src/go/src/pkg/runtime/runtime.c:74
        throw(0x47f060, 0x0)
runtime·throwindex+0x1c /home/nick/src/go/src/pkg/runtime/runtime.c:47
        runtime·throwindex()
net·hostPortToIP+0x19a /home/nick/src/go/src/pkg/net/ipsock.go:199
        net·hostPortToIP(0x446170, 0x0, 0x3, 0x0, 0x464280, ...)
net·ResolveTCPAddr+0x34 /home/nick/src/go/src/pkg/net/tcpsock.go:61
        net·ResolveTCPAddr(0x464280, 0x0, 0xf, 0x0, 0x4462f0, ...)
net·Dial+0x2a3 /home/nick/src/go/src/pkg/net/net.go:133
        net·Dial(0x446170, 0x0, 0x3, 0x0, 0x4462f0, ...)
net·TestDialError+0xbc /home/nick/src/go/src/pkg/net/net_test.go:56
        net·TestDialError(0xed8c3ba0, 0x2b3d)
testing·tRunner+0x22 /home/nick/src/go/src/pkg/testing/testing.go:105
        testing·tRunner(0xed8c3ba0, 0x2b3d, 0x494a28, 0x0)
goexit /home/nick/src/go/src/pkg/runtime/proc.c:134
        goexit()
0x2b3ded8c3ba0 unknown pc

goroutine 3:
runtime·entersyscall+0x50 /home/nick/src/go/src/pkg/runtime/proc.c:539
        runtime·entersyscall()
syscall·Syscall6+0x5 /home/nick/src/go/src/pkg/syscall/asm_linux_amd64.s:41
        syscall·Syscall6()
syscall·EpollWait+0x84 /home/nick/src/go/src/pkg/syscall/
zsyscall_linux_amd64.go:132
        syscall·EpollWait(0x6, 0x2b3d, 0xed8c5280, 0x2b3d, 0x1, ...)
net·*pollster·WaitFD+0xb5 /home/nick/src/go/src/pkg/net/fd_linux.go:116
        net·*pollster·WaitFD(0xed886ca0, 0x2b3d, 0x39cf6c58, 0x0, 
0x72, ...)
net·*pollServer·Run+0x9e /home/nick/src/go/src/pkg/net/fd.go:237
        net·*pollServer·Run(0xed848680, 0x2b3d)
goexit /home/nick/src/go/src/pkg/runtime/proc.c:134
        goexit()
0x2b3ded848680 unknown pc

goroutine 1:
gosched+0x34 /home/nick/src/go/src/pkg/runtime/proc.c:515
        gosched()
chanrecv+0x318 /home/nick/src/go/src/pkg/runtime/chan.c:319
        chanrecv(0xed8e1a00, 0x2b3d, 0xed88bf68, 0x2b3d, 0x0, ...)
runtime·chanrecv1+0x50 /home/nick/src/go/src/pkg/runtime/chan.c:415
        runtime·chanrecv1(0xed8e1a00, 0x2b3d)
testing·Main+0x263 /home/nick/src/go/src/pkg/testing/testing.go:132
        testing·Main(0x4949f8, 0x0)
main·main+0x23 /home/nick/src/go/src/pkg/net/_testmain.go:21
        main·main()
mainstart+0xf /home/nick/src/go/src/pkg/runtime/amd64/asm.s:55
        mainstart()
goexit /home/nick/src/go/src/pkg/runtime/proc.c:134
        goexit()
make: *** [test] Error 2, nick, you suck


What is your $GOOS?  $GOARCH?
GOARCH=amd64
GOOS=linux


Which revision are you sync'ed to?  (hg log -l 1)
changeset:   3975:b51fd2d6c160
tag:         tip
user:        Kevin Ballard <[email protected]>
date:        Tue Nov 10 20:05:24 2009 -0800
summary:     Implement new emacs command M-x gofmt


Please provide any additional information below.
net_test #4 seems to be testing the domain suffix search list feature, 
recorded by the _DNS_Config structure and used by the net.LookupHost 
function.  It uses a hostname with no internal or trailing dots, and 
expects a failed result containing the same hostname followed by a dot, 
then a domain consisting of zero (:O) or more characters, then another dot 
followed by an error message.

If the local machine is set up with NO domain suffixes configured, then 
net_test #4 fails (in various ways described below)

The failure may or may not be fixed (described below also), but to get to 
the point, net.LookupHost needs a fix, and so does the test.  Perhaps the 
best way to fix the test, and retain its relevance, is to temporary add 
domain a suffix search entry, such as '.localdomain', to the runtime 
_DNS_Config only for the duration of test #4 if there were no suffixes 
(suffixe??? suffii???) already discovered.

The first way that the test fails is quoted above.

The function net.hostPortToIP (ipsock.go:199) assumes that the addrs array 
returned by net.LookupHost will always have length > 0 if there was no 
error, but net.LookupHost can indeed return in this state.

If the host parameter contains no dot, either internally, or as the last 
character (FQDN), and the host machine has no domain suffix search list 
configured, then this parameter will pass through net.LookupHost without 
any lookup being done on it, thus addrs and err will not be set.

The version of net.LookupHost in revision control behavies like this, but 
the version at: http://golang.org/src/pkg/net/dnsclient.go seems to work 
around this same issue with an attempt at a final, unavioudable lookup of 
the hostname with a '.' appended.  I'm not sure which version is more up 
to date, but the fix in the version of dnsclient.go from the website 
(actually both versions) is missing a step.

Should there not be a local lookup of hostnames on the host machine, ie, /
etc/hosts ?  This is usually done as a first step in a number of resolvers 
(like c-ares, doesn't google use c-ares?), and is the default setting for 
the libc resolver on most linuxes (linuxe??! linii?!!). Appending the dot 
to the dotless/trailingdotless hostname is only valid as a last resort if 
the local lookup has already been performed.

The second way that the test fails (using the fix from the web version of 
dnsclient.go), is the error string returned by net.LookupHost still 
doesn't match the pattern expected by net_test #4 (it doesn't contain a 
domain).  To fix this, net_test #4 could be changed as explained above, to 
temporarily add one '.localdomain' entry (or even many, to further test 
the code) to an empty domain suffix search list for the duration of the 
test, so that the test remains relevant and covers the code paths it is 
intended to cover.

path test failed

by scaner:

What steps will reproduce the problem?
1.cd $GOROOT/pkg/path
2.gotest
3.

What is the expected output? What do you see instead?
PASS
----

--- FAIL: path.TestWalk
        1. error expected, none found
        node testdata/d/x mark = 2; expected 1
        node testdata/d/y mark = 2; expected 1
        node testdata/d/z mark = 2; expected 1
        node testdata/d/z/u mark = 2; expected 1
        node testdata/d/z/v mark = 2; expected 1
FAIL


What is your $GOOS?  $GOARCH?
GOARCH=amd64
GOBIN=/is/app/go/bin
GOOS=linux
GOROOT=/is/app/go


Which revision are you sync'ed to?  (hg log -l 1)
changeset:   3975:b51fd2d6c160
tag:         tip
user:        Kevin Ballard <[email protected]>
date:        Tue Nov 10 20:05:24 2009 -0800
summary:     Implement new emacs command M-x gofmt



Please provide any additional information below.

log test fails if $GOROOT has a dot in it

by qwertymaniac:

What steps will reproduce the problem?
1. Checkout the source, set the environment vars properly.
2. Browse to src/ dir.
3. Run ./all.bash

What is the expected output? What do you see instead?

Build (Testing of log module, specifically) fails with the following
message (tail):

make[2]: Leaving directory `/home/hack/.go/src/pkg/json'
PASS
make[1]: Leaving directory `/home/hack/.go/src/pkg/json'
cd log && make test
make[1]: Entering directory `/home/hack/.go/src/pkg/log'
gotest
make[2]: Entering directory `/home/hack/.go/src/pkg/log'
rm -f _test/log.a _gotest_.6
make[2]: Leaving directory `/home/hack/.go/src/pkg/log'
make[2]: Entering directory `/home/hack/.go/src/pkg/log'
6g -o _gotest_.6 log.go    log_test.go
rm -f _test/log.a
gopack grc _test/log.a _gotest_.6
make[2]: Leaving directory `/home/hack/.go/src/pkg/log'
--- FAIL: log.TestAllLog
        log output should match "^/[A-Za-z0-9_/\\-]+\\.go:[0-9]+: hello 23
world$" is "/home/hack/.go/src/pkg/log/log_test.go:60: hello 23 world"
        log output should match "^/[A-Za-z0-9_/\\-]+\\.go:[0-9]+: hello 23
world$" is "/home/hack/.go/src/pkg/log/log_test.go:58: hello 23 world"
        log output should match
"^XXX[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9]
[0-9][0-9]:[0-9][0-9]:[0-9][0-9]\\.[0-9][0-9][0-9][0-9][0-9][0-9]
/[A-Za-z0-9_/\\-]+\\.go:[0-9]+: hello 23 world$" is "XXX2009/11/11
11:41:08.716400 /home/hack/.go/src/pkg/log/log_test.go:60: hello 23 world"
        log output should match
"^XXX[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9]
[0-9][0-9]:[0-9][0-9]:[0-9][0-9]\\.[0-9][0-9][0-9][0-9][0-9][0-9]
/[A-Za-z0-9_/\\-]+\\.go:[0-9]+: hello 23 world$" is "XXX2009/11/11
11:41:08.716556 /home/hack/.go/src/pkg/log/log_test.go:58: hello 23 world"
FAIL
make[1]: *** [test] Error 1
make[1]: Leaving directory `/home/hack/.go/src/pkg/log'
make: *** [log.test] Error 2

What is your $GOOS?  $GOARCH?

linux/amd64


Which revision are you sync'ed to?  (hg log -l 1)

changeset:   3976:cf1b54c30bc1
tag:         tip
user:        Russ Cox <[email protected]>
date:        Tue Nov 10 20:11:16 2009 -0800
summary:     move release tag

Please provide any additional information below.

gopack: segmentation fault in runtime

by ninkendo:

This is on a University server (I'm the admin) and I'm trying to get Go 
working on an NFS mount so all our Ubuntu servers can have the go compiler 
on it (so students can play around with it.)

I can consistently compile Go from a directory like /tmp or /usr/src, but 
cloning the hg tree to a NFS-mounted direcory always results in a segfault.

What steps will reproduce the problem?
1. Clone the mercurial tree to an NFS filesystem
2. Set GOBIN to any directory, on or off NFS
3. cd to $GOROOT/src and run ./all.bash

What is the expected output? What do you see instead?

Expected build to perform the same as it does on non-nfs filesystems.

Instead, get the following:

gopack grc _obj/runtime.a _go_.6 asm.6 cgocall.6 chan.6 closure.6 float.6 
hashmap.6 iface.6 malloc.6 mcache.6 mcentral.6 mem.6 mfixalloc.6 mgc0.6 
mheap.6 mheapmap64.6 msize.6 print.6 proc.6 reflect.6 rune.6 runtime.6 
rt0.6 sema.6 signal.6 slice.6 string.6 symtab.6 sys.6 thread.6 traceback.6
make[1]: *** [_obj/runtime.a] Segmentation fault
rm reflect.c string.c sema.c malloc.c
make[1]: Leaving directory `/nfs/apps/go/src/pkg/runtime'
make: *** [runtime.install] Error 2

I can reliably reproduce the segfault from $GOROOT/src/pkg/runtime and 
running the above gopack command.


What is your $GOOS?  $GOARCH?
linux, amd64

(Ubuntu 8.04.3 LTS, kernel 2.6.24-24-server)

Which revision are you sync'ed to?  (hg log -l 1)

changeset:   3975:b51fd2d6c160

Please provide any additional information below.

strace dump is included.  It looks like it's segfaulting trying to talk to 
winbind for user authentication?  Not sure if gopack is doing any of this, 
or if it's library code... but it reliably works when $GOROOT is on a local 
filesystem.

Attachments:

  1. strace.txt (9011 bytes)

path.TestWalk fails running as root

by DickFardos:

What steps will reproduce the problem?
1. set environment vars
2. pull down go from repos
3.  run all.bash

What is the expected output? What do you see instead?
make[2]: Entering directory `/root/go/src/pkg/os'
8g -o _gotest_.8 dir_linux.go env.go error.go exec.go file.go getwd.go
path.go proc.go stat_linux.go sys_linux.go time.go types.go    
rm -f _test/os.a
gopack grc _test/os.a _gotest_.8 
make[2]: Leaving directory `/root/go/src/pkg/os'
--- FAIL: os_test.TestRemoveAll
    RemoveAll "_obj/_TestRemoveAll_" succeeded with chmod 0
subdirectory?(extra *os.PathError=lstat _obj/_TestRemoveAll_: no such file
or directory)
FAIL
make[1]: *** [test] Error 1
make[1]: Leaving directory `/root/go/src/pkg/os'
make: *** [os.test] Error 2

What is your $GOOS?  $GOARCH?
root@wboring:~/go/src$ set |grep GO
GOARCH=386
GOBIN=/usr/local/go/bin
GOOS=linux
GOROOT=/root/go

Which revision are you sync'ed to?  (hg log -l 1)
root@wboring:~/go/src$ hg log -l 1
changeset:   3975:b51fd2d6c160
tag:         tip
user:        Kevin Ballard <[email protected]>
date:        Tue Nov 10 20:05:24 2009 -0800
summary:     Implement new emacs command M-x gofmt


Please provide any additional information below.
linux Ubuntu 9.10

Crash when running tests, no tests matching.

by stephen.thorne:

What steps will reproduce the problem?
1. On Fedora 11, i386
2. Mercurial checkout, checkout tip was 3952:64e703cb307d / Tue Nov 10
14:09:01 2009 -0800
3. Run src$ ./all.bash

What is the expected output? What do you see instead?

An error occurs:
cd archive/tar && make test
make[1]: Entering directory `/home/sthorne/go/src/pkg/archive/tar'
gotest
make[2]: Entering directory `/home/sthorne/go/src/pkg/archive/tar'
rm -f _test/archive/tar.a _gotest_.8
make[2]: Leaving directory `/home/sthorne/go/src/pkg/archive/tar'
make[2]: Entering directory `/home/sthorne/go/src/pkg/archive/tar'
8g -o _gotest_.8 common.go reader.go writer.go    reader_test.go writer_test.go
rm -f _test/archive/tar.a
gopack grc _test/archive/tar.a _gotest_.8 
make[2]: Leaving directory `/home/sthorne/go/src/pkg/archive/tar'
gotest: error: no tests matching Test([^a-z].*)? in _test/archive/tar.a
make[1]: *** [test] Error 2
make[1]: Leaving directory `/home/sthorne/go/src/pkg/archive/tar'
make: *** [archive/tar.test] Error 2

What is your $GOOS?  $GOARCH?
GOROOT=/home/sthorne/go
GOOS=linux
GOARCH=386
GOBIN=/home/sthorne/bin

Which revision are you sync'ed to?  (hg log -l 1)
changeset:   3952:64e703cb307d
tag:         tip
user:        Russ Cox <[email protected]>
date:        Tue Nov 10 14:09:01 2009 -0800
summary:     update video links


Please provide any additional information below.

I have attached the tar.a file below. Grepping through this file I do see
appropriate Test* methods.

Attachments:

  1. tar.a (261238 bytes)

net: TestDialError fails

by morphius.faydal:

What steps will reproduce the problem?
1. repo version 3975:b51fd2d6c160
2. ./all.bash
3. will give an error.

What is the expected output? What do you see instead?
make[2]: Entering directory `/home/morphius/go/src/pkg/net'
rm -f _test/net.a _gotest_.8
make[2]: Leaving directory `/home/morphius/go/src/pkg/net'
make[2]: Entering directory `/home/morphius/go/src/pkg/net'
8g -o _gotest_.8 dnsclient.go dnsconfig.go dnsmsg.go fd.go fd_linux.go
ip.go ipsock.go net.go parse.go port.go sock.go tcpsock.go udpsock.go
unixsock.go    dialgoogle_test.go ip_test.go net_test.go parse_test.go
port_test.go server_test.go timeout_test.go
rm -f _test/net.a
gopack grc _test/net.a _gotest_.8 
make[2]: Leaving directory `/home/morphius/go/src/pkg/net'
SIGTRAP: trace trap
Faulting address: 0x0
PC=0x8052840

net·hostPortToIP+0x15d /home/morphius/go/src/pkg/net/ipsock.go:199
    net·hostPortToIP(0x809608c, 0x3, 0x80a9104, 0xf, 0x0, ...)
net·ResolveTCPAddr+0x36 /home/morphius/go/src/pkg/net/tcpsock.go:61
    net·ResolveTCPAddr(0x80a9104, 0xf, 0x80960d0, 0x0)
net·Dial+0x27e /home/morphius/go/src/pkg/net/net.go:133
    net·Dial(0x809608c, 0x3, 0x80960d0, 0x0, 0x80a9104, ...)
net·TestDialError+0xd8 /home/morphius/go/src/pkg/net/net_test.go:56
    net·TestDialError(0x400ba130, 0x1)
testing·tRunner+0x36 /home/morphius/go/src/pkg/testing/testing.go:105
    testing·tRunner(0x400ba130, 0x80c9a54, 0x0)
goexit /home/morphius/go/src/pkg/runtime/proc.c:134
    goexit()
0x400ba130 unknown pc

goroutine 3:
runtime·entersyscall+0x60 /home/morphius/go/src/pkg/runtime/proc.c:539
    runtime·entersyscall()
syscall·Syscall6+0x5 /home/morphius/go/src/pkg/syscall/asm_linux_386.s:650
    syscall·Syscall6()
syscall·EpollWait+0x7c
/home/morphius/go/src/pkg/syscall/zsyscall_linux_386.go:132
    syscall·EpollWait(0x6, 0x400bac30, 0x1, 0x1, 0x165, ...)
net·*pollster·WaitFD+0xff /home/morphius/go/src/pkg/net/fd_linux.go:116
    net·*pollster·WaitFD(0x400424f0, 0x1540ac80, 0x0, 0x400b41c0, 0x72, ...)
net·*pollServer·Run+0xc3 /home/morphius/go/src/pkg/net/fd.go:237
    net·*pollServer·Run(0x4008e2a0, 0x80cb318)
goexit /home/morphius/go/src/pkg/runtime/proc.c:134
    goexit()
0x4008e2a0 unknown pc

goroutine 1:
gosched+0x48 /home/morphius/go/src/pkg/runtime/proc.c:515
    gosched()
chanrecv+0x2d3 /home/morphius/go/src/pkg/runtime/chan.c:319
    chanrecv(0x400ce810, 0x4007af8c, 0x0, 0x4007c0d8)
runtime·chanrecv1+0x4e /home/morphius/go/src/pkg/runtime/chan.c:415
    runtime·chanrecv1(0x400ce810, 0x80c9a54)
testing·Main+0x25f /home/morphius/go/src/pkg/testing/testing.go:132
    testing·Main(0x80c9a3c, 0xb)
main·main+0x29 /home/morphius/go/src/pkg/net/_testmain.go:21
    main·main()
mainstart+0xf /home/morphius/go/src/pkg/runtime/386/asm.s:81
    mainstart()
goexit /home/morphius/go/src/pkg/runtime/proc.c:134
    goexit()
eax     0x4004805000000000
ebx     0x400480504007bf10
ecx     0x40048050080a9104
edx     0x4004805040079820
edi     0x400480504007bf10
esi     0x400480504007bee8
ebp     0x4004805000000001
esp     0x400480504007bec4
eip     0x4004805008052840
eflags  0x4004805000200246
cs      0x4004805000000073
fs      0x4004805000000000
gs      0x400480500000003f
/home/morphius/gobin/gotest: line 141: 25464 Trace/breakpoint trap   $E
./$O.out "$@"
make[1]: *** [test] Error 133
make[1]: Leaving directory `/home/morphius/go/src/pkg/net'
make: *** [net.test] Error 2
morphius@azmael:~/go/src$

What is your $GOOS?  $GOARCH?

$GOOS=linux
$GOARCH=386

Which revision are you sync'ed to?  (hg log -l 1)

3975:b51fd2d6c160


Please provide any additional information below.

Problem with quietgcc

by Hackergonepostal:

This is being run on a MacOS X 10.6 system.

What steps will reproduce the problem?
run ./all.bash

What is the expected output? What do you see instead?
I expect it to display:
--- cd ../test
N known bugs; 0 unexpected bugs

I see:
make.bash: line 20: /Users/[user name]/bin/quietgcc: No such file or directory

What is your $GOOS?  $GOARCH?
$GOOS=darwin
$GOARCH=amd64

Which revision are you sync'ed to?  (hg log -l 1)
changeset:   3952:64e703cb307d
tag:         tip
user:        Russ Cox <[email protected]>
date:        Tue Nov 10 14:09:01 2009 -0800
summary:     update video links

Please provide any additional information below.
I also tried this with $GOARCH set to 386 and got the same result.

OpenBSD: "../Make.conf", line 11: Need an operator

by nickthepreserver:

What steps will reproduce the problem?
1. Set the proper environment variables
2. Retrieve the Go source tree from its repository
3. Change directory to ./src and run all.bash

What is the expected output? What do you see instead?
"../Make.conf", line 11: Need an operator
"../Make.conf", line 13: Need an operator
Fatal errors encountered -- cannot continue
"../Make.conf", line 11: Need an operator
"../Make.conf", line 13: Need an operator
Fatal errors encountered -- cannot continue
rm -f *.o *.so
"../Make.conf", line 11: Need an operator
"../Make.conf", line 13: Need an operator
Fatal errors encountered -- cannot continue
"../../Make.conf", line 11: Need an operator
"../../Make.conf", line 13: Need an operator
Fatal errors encountered -- cannot continue
"../../Make.conf", line 11: Need an operator
"../../Make.conf", line 13: Need an operator
Fatal errors encountered -- cannot continue
"../../Make.conf", line 11: Need an operator
"../../Make.conf", line 13: Need an operator
Fatal errors encountered -- cannot continue
"../../Make.conf", line 11: Need an operator
"../../Make.conf", line 13: Need an operator
Fatal errors encountered -- cannot continue
"../../Make.conf", line 11: Need an operator
"../../Make.conf", line 13: Need an operator
Fatal errors encountered -- cannot continue
"../../Make.conf", line 11: Need an operator
"../../Make.conf", line 13: Need an operator
Fatal errors encountered -- cannot continue
"../../Make.conf", line 11: Need an operator
"../../Make.conf", line 13: Need an operator
Fatal errors encountered -- cannot continue
"../../Make.conf", line 11: Need an operator
"../../Make.conf", line 13: Need an operator
Fatal errors encountered -- cannot continue
"../../Make.conf", line 11: Need an operator
"../../Make.conf", line 13: Need an operator
Fatal errors encountered -- cannot continue
"../../Make.conf", line 11: Need an operator
"../../Make.conf", line 13: Need an operator
Fatal errors encountered -- cannot continue
"../../Make.conf", line 11: Need an operator
"../../Make.conf", line 13: Need an operator
Fatal errors encountered -- cannot continue
"../../Make.conf", line 11: Need an operator
"../../Make.conf", line 13: Need an operator
Fatal errors encountered -- cannot continue
"../../Make.conf", line 11: Need an operator
"../../Make.conf", line 13: Need an operator
Fatal errors encountered -- cannot continue
"../../Make.conf", line 11: Need an operator
"../../Make.conf", line 13: Need an operator
Fatal errors encountered -- cannot continue
"../../Make.conf", line 11: Need an operator
"../../Make.conf", line 13: Need an operator
Fatal errors encountered -- cannot continue
"../../Make.conf", line 11: Need an operator
"../../Make.conf", line 13: Need an operator
Fatal errors encountered -- cannot continue
"/home/nik/go/src/Make.cmd", line 6: Need an operator
"/home/nik/go/src/Make.cmd", line 8: Need an operator
Fatal errors encountered -- cannot continue
"../../Make.conf", line 11: Need an operator
"../../Make.conf", line 13: Need an operator
Fatal errors encountered -- cannot continue
"/home/nik/go/src/Make.cmd", line 6: Need an operator
"/home/nik/go/src/Make.cmd", line 8: Need an operator
Fatal errors encountered -- cannot continue
"../../Make.conf", line 11: Need an operator
"../../Make.conf", line 13: Need an operator
Fatal errors encountered -- cannot continue
"/home/nik/go/src/Make.cmd", line 6: Need an operator
"/home/nik/go/src/Make.cmd", line 8: Need an operator
Fatal errors encountered -- cannot continue
"/home/nik/go/src/Make.cmd", line 6: Need an operator
"/home/nik/go/src/Make.cmd", line 8: Need an operator
Fatal errors encountered -- cannot continue
"../../Make.conf", line 11: Need an operator
"../../Make.conf", line 13: Need an operator
Fatal errors encountered -- cannot continue
"/home/nik/go/src/Make.cmd", line 6: Need an operator
"/home/nik/go/src/Make.cmd", line 8: Need an operator
Fatal errors encountered -- cannot continue
"/home/nik/go/src/Make.cmd", line 6: Need an operator
"/home/nik/go/src/Make.cmd", line 8: Need an operator
Fatal errors encountered -- cannot continue
"../../Make.conf", line 11: Need an operator
"../../Make.conf", line 13: Need an operator
Fatal errors encountered -- cannot continue
rm -rf *.[568vqo] *.a [568vq].out *.cgo[12].go *.cgo[34].c *.so _obj _test
_testmain.go pi fib
rm -rf *.[568vqo] *.a [568vq].out *.cgo[12].go *.cgo[34].c *.so _obj _test
_testmain.go hello fib chain run.out


%%%% making lib9 %%%%

"../Make.conf", line 11: Need an operator
"../Make.conf", line 13: Need an operator
Fatal errors encountered -- cannot continue


What is your $GOOS?  $GOARCH?
merope% export|grep GO
GOARCH=386
GOBIN=/home/nik/lbin
GOOS=nacl
GOROOT=/home/nik/go


Which revision are you sync'ed to?  (hg log -l 1)
merope% hg log -l 1
changeset:   3975:b51fd2d6c160
tag:         tip
user:        Kevin Ballard <[email protected]>
date:        Tue Nov 10 20:05:24 2009 -0800
summary:     Implement new emacs command M-x gofmt


Please provide any additional information below.
merope% uname -a
OpenBSD merope 4.6 GENERIC#58 i386

Although the only formally supported operating systems are listed as Linux
and OSX, I noticed that under the available options for $GOOS there was
nacl. Also knowing that OSX is at its roots a BSD system, I assumed that it
should build on another BSD system. I don't know if this is the only reason
it won't build, but I hope it isn't.

unknown pc's

by quanstro:

What steps will reproduce the problem?
1. all.bash
2.
3.

What is the expected output? What do you see instead?

6g -o _gotest_.6 dnsclient.go dnsconfig.go dnsmsg.go fd.go fd_linux.go
ip.go ipsock.go net.go parse.go port.go sock.go tcpsock.go udpsock.go
unixsock.go    dialgoogle_test.go net_test.go port_test.go timeout_test.go
ip_test.go parse_test.go server_test.go
rm -f _test/net.a
gopack grc _test/net.a _gotest_.6 
make[2]: Leaving directory `/home/quanstro/go/src/pkg/net'
throw: index out of range

panic PC=0x2ad9ee799d38
throw+0x3e /home/quanstro/go/src/pkg/runtime/runtime.c:74
    throw(0x47f088, 0x0)
runtime·throwindex+0x1c /home/quanstro/go/src/pkg/runtime/runtime.c:47
    runtime·throwindex()
net·hostPortToIP+0x19a /home/quanstro/go/src/pkg/net/ipsock.go:199
    net·hostPortToIP(0x446170, 0x0, 0x3, 0x0, 0x464280, ...)
net·ResolveTCPAddr+0x34 /home/quanstro/go/src/pkg/net/tcpsock.go:61
    net·ResolveTCPAddr(0x464280, 0x0, 0xf, 0x0, 0x4462f0, ...)
net·Dial+0x2a3 /home/quanstro/go/src/pkg/net/net.go:133
    net·Dial(0x446170, 0x0, 0x3, 0x0, 0x4462f0, ...)
net·TestDialError+0xbc /home/quanstro/go/src/pkg/net/net_test.go:56
    net·TestDialError(0xee83e7e0, 0x2ad9)
testing·tRunner+0x22 /home/quanstro/go/src/pkg/testing/testing.go:105
    testing·tRunner(0xee83e7e0, 0x2ad9, 0x494a10, 0x0)
goexit /home/quanstro/go/src/pkg/runtime/proc.c:134
    goexit()
0x2ad9ee83e7e0 unknown pc

goroutine 3:
runtime·entersyscall+0x50 /home/quanstro/go/src/pkg/runtime/proc.c:539
    runtime·entersyscall()
syscall·Syscall6+0x5 /home/quanstro/go/src/pkg/syscall/asm_linux_amd64.s:41
    syscall·Syscall6()
syscall·EpollWait+0x84
/home/quanstro/go/src/pkg/syscall/zsyscall_linux_amd64.go:132
    syscall·EpollWait(0x6, 0x2ad9, 0xee8432a0, 0x2ad9, 0x1, ...)
net·*pollster·WaitFD+0xb5 /home/quanstro/go/src/pkg/net/fd_linux.go:116
    net·*pollster·WaitFD(0xee7b9020, 0x2ad9, 0x2faf0800, 0x0, 0x72, ...)
net·*pollServer·Run+0x9e /home/quanstro/go/src/pkg/net/fd.go:237
    net·*pollServer·Run(0xee758680, 0x2ad9)
goexit /home/quanstro/go/src/pkg/runtime/proc.c:134
    goexit()
0x2ad9ee758680 unknown pc

What is your $GOOS?  $GOARCH?

GOOS=linux
GOARCH=amd64

Which revision are you sync'ed to?  (hg log -l 1)

changeset:   3975:b51fd2d6c160
tag:         tip
user:        Kevin Ballard <[email protected]>
date:        Tue Nov 10 20:05:24 2009 -0800
summary:     Implement new emacs command M-x gofmt

Please provide any additional information below.

Segfault getting Go to build

by srichand.pendyala:

What steps will reproduce the problem?
1. Checkout source, unset GOBIN
2. Switch to bash (I use zsh)
3. run all.bash

What is the expected output? What do you see instead?
I expect what the "Install" tutorial says. Instead I get a segfault.
Relevant lines:

rm -f _test/net.a
gopack grc _test/net.a _gotest_.8 
/Users/pendyals/bin/gotest: line 141: 34916 Segmentation fault      $E
./$O.out "$@"
make[1]: *** [test] Error 139
make: *** [net.test] Error 2

What is your $GOOS?  $GOARCH?
[%n@%m:%~] $ echo $GOOS 
darwin
[%n@%m:%~] $ echo $GOARCH 
386

Which revision are you sync'ed to?  (hg log -l 1)
changeset:   3952:64e703cb307d
tag:         tip
user:        Russ Cox <[email protected]>
date:        Tue Nov 10 14:09:01 2009 -0800
summary:     update video links


Please provide any additional information below.

throw: index out of range during all.bash

by pierslauder:

What steps will reproduce the problem?

1. Download using hg command "hg clone -r release 
https://go.googlecode.com/hg/ $GOROOT"

2. cd $GOROOT/src; ./all.bash

What is the expected output? What do you see instead?

Expected output:
--- cd ../test
N known bugs; 0 unexpected bugs

Instead get:
...
gopack grc _test/net.a _gotest_.6 
make[2]: Leaving directory `/home/srce/pd/go/src/pkg/net'
throw: index out of range

panic PC=0x2aef65c88d38
throw+0x3e /home/srce/pd/go/src/pkg/runtime/runtime.c:74
        throw(0x47f060, 0x0)
runtime·throwindex+0x1c /home/srce/pd/go/src/pkg/runtime/runtime.c:47
        runtime·throwindex()
net·hostPortToIP+0x19a /home/srce/pd/go/src/pkg/net/ipsock.go:199
        net·hostPortToIP(0x446170, 0x0, 0x3, 0x0, 0x464280, ...)
net·ResolveTCPAddr+0x34 /home/srce/pd/go/src/pkg/net/tcpsock.go:61
        net·ResolveTCPAddr(0x464280, 0x0, 0xf, 0x0, 0x4462f0, ...)
net·Dial+0x2a3 /home/srce/pd/go/src/pkg/net/net.go:133
        net·Dial(0x446170, 0x0, 0x3, 0x0, 0x4462f0, ...)
net·TestDialError+0xbc /home/srce/pd/go/src/pkg/net/net_test.go:56
        net·TestDialError(0x65d04040, 0x2aef)
testing·tRunner+0x22 /home/srce/pd/go/src/pkg/testing/testing.go:105
        testing·tRunner(0x65d04040, 0x2aef, 0x494a28, 0x0)
goexit /home/srce/pd/go/src/pkg/runtime/proc.c:134
        goexit()
0x2aef65d04040 unknown pc

goroutine 3:
runtime·entersyscall+0x50 /home/srce/pd/go/src/pkg/runtime/proc.c:539
        runtime·entersyscall()
syscall·Syscall6+0x5 /home/srce/pd/go/src/pkg/syscall/asm_linux_amd64.s:41
        syscall·Syscall6()
syscall·EpollWait+0x84 
/home/srce/pd/go/src/pkg/syscall/zsyscall_linux_amd64.go:132
        syscall·EpollWait(0x6, 0x2aef, 0x65d00c60, 0x2aef, 0x1, ...)
net·*pollster·WaitFD+0xb5 /home/srce/pd/go/src/pkg/net/fd_linux.go:116
        net·*pollster·WaitFD(0x65ca60a0, 0x2aef, 0x2fb72df0, 0x0, 0x72, ...)
net·*pollServer·Run+0x9e /home/srce/pd/go/src/pkg/net/fd.go:237
        net·*pollServer·Run(0x65c49540, 0x2aef)
goexit /home/srce/pd/go/src/pkg/runtime/proc.c:134
        goexit()
0x2aef65c49540 unknown pc

goroutine 1:
gosched+0x34 /home/srce/pd/go/src/pkg/runtime/proc.c:515
        gosched()
chanrecv+0x318 /home/srce/pd/go/src/pkg/runtime/chan.c:319
        chanrecv(0x65ca71e0, 0x2aef, 0x65c87f68, 0x2aef, 0x0, ...)
runtime·chanrecv1+0x50 /home/srce/pd/go/src/pkg/runtime/chan.c:415
        runtime·chanrecv1(0x65ca71e0, 0x2aef)
testing·Main+0x263 /home/srce/pd/go/src/pkg/testing/testing.go:132
        testing·Main(0x4949f8, 0x0)
main·main+0x23 /home/srce/pd/go/src/pkg/net/_testmain.go:21
        main·main()
mainstart+0xf /home/srce/pd/go/src/pkg/runtime/amd64/asm.s:55
        mainstart()
goexit /home/srce/pd/go/src/pkg/runtime/proc.c:134
        goexit()
make[1]: *** [test] Error 2
make[1]: Leaving directory `/home/srce/pd/go/src/pkg/net'
make: *** [net.test] Error 2



What is your $GOOS?  $GOARCH?

GOARCH=amd64
GOOS=linux


Which revision are you sync'ed to?  (hg log -l 1)

changeset:   3952:64e703cb307d
tag:         tip
user:        Russ Cox <[email protected]>
date:        Tue Nov 10 14:09:01 2009 -0800
summary:     update video links


Please provide any additional information below.

cmd/ld: add PAX header

by jameshubbard:

What steps will reproduce the problem?
1.Run all.bash on an SELinux enabled Fedora (using F12 Rawhide)
2. Fails during build process. 
3.

What is the expected output? What do you see instead?
hello, world

Error message received
/hello: error while loading shared libraries:
/home/jhubbard/go/pkg/linux_386/libcgo.so: cannot enable executable stack
as shared object requires: Permission denied

I changed the context for the hello world program and it ran. 

What is your $GOOS?  $GOARCH?
linux 
386

Which revision are you sync'ed to?  (hg log -l 1)

changeset:   3975:b51fd2d6c160

Please provide any additional information below.

Target the JVM

by tgdavies:

This would allow Go to leverage many third party libraries and environments (e.g. GAE)
and the JVMs 
GC and JIT capabilities.

./6.out: cannot execute binary file

by hsandhar:

What steps will reproduce the problem?
1. cd $GOROOT/src
2. ./all.bash
3.

What is the expected output? What do you see instead?

Expected:
--- cd ../test
N known bugs; 0 unexpected bugs

What I received:

...
...
cp _obj/testing.a /Users/hsandhar/go/pkg/linux_amd64/testing.a
cd testing/iotest && make install
cp _obj/testing/iotest.a /Users/hsandhar/go/pkg/linux_amd64/testing/iotest.a
cd testing/quick && make install
cp _obj/testing/quick.a /Users/hsandhar/go/pkg/linux_amd64/testing/quick.a
cd testing/script && make install
cp _obj/testing/script.a /Users/hsandhar/go/pkg/linux_amd64/testing/script.a
cd xml && make install
cp _obj/xml.a /Users/hsandhar/go/pkg/linux_amd64/xml.a
cd archive/tar && make test
gotest
rm -f _test/archive/tar.a _gotest_.6
6g -o _gotest_.6 common.go reader.go writer.go    reader_test.go writer_test.go
rm -f _test/archive/tar.a
gopack grc _test/archive/tar.a _gotest_.6 
/Users/hsandhar/bin/gotest: line 146: ./6.out: cannot execute binary file
make[1]: *** [test] Error 126
make: *** [archive/tar.test] Error 2




What is your $GOOS?  $GOARCH?
$GOOS -> linux
$GOARCH -> amd64

Which revision are you sync'ed to?  (hg log -l 1)
changeset:   3975:b51fd2d6c160
tag:         tip
user:        Kevin Ballard <[email protected]>
date:        Tue Nov 10 20:05:24 2009 -0800
summary:     Implement new emacs command M-x gofmt


Please provide any additional information below.
I'm running this on a Macbook Pro (Snow Leopard, 10.6.2). I have attached
the complete output as well (see attached file).
Any help/feedback would be very appreciated.
Thanks.

Attachments:

  1. output.rtf (93360 bytes)

trivial time_t vs long in ar.c

by smcpolin:

What steps will reproduce the problem?
1. install on freebsd
2. ./all.bash
3.

What is the expected output? What do you see instead?
pointer type violation on line 1222 of gopack/ar.c


What is your $GOOS?  $GOARCH?
nacl, 386
Which revision are you sync'ed to?  (hg log -l 1)


changeset:   3975:b51fd2d6c160
tag:         tip
user:        Kevin Ballard <[email protected]>
date:        Tue Nov 10 20:05:24 2009 -0800
summary:     Implement new emacs command M-x gofmt


Which revision are you sync'ed to?  (hg log -l 1)


Please provide any additional information below.
Line 1222 should be something like:
time_t rt = bp->date; cp = ctime(&rt);

unnecessarily complicated setup

by oliver.knill:

What steps will reproduce the problem?

its not a problem, but why so complicated?

What is the expected output? What do you see instead?

Let the system figure out and set the global variables. 
Make one generic version of the compiler. It took me half an hour
to figure things out. That is too long. 

What is your $GOOS?  $GOARCH?

It is not clear from the documentation,
whether to use GOARC = linux/386 or   GOARCH=386 for example
There is trouble if one of the directories is only sudo accessible.

export GOROOT=$HOME/prog3/go
export GOOS=linux
export GOARCH=386
export GOBIN=$HOME/bin




Which revision are you sync'ed to?  (hg log -l 1)
changeset:   3975:b51fd2d6c160
tag:         tip
user:        Kevin Ballard <[email protected]>
date:        Tue Nov 10 20:05:24 2009 -0800
summary:     Implement new emacs command M-x gofmt


Please provide any additional information below.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.