1
0
mirror of https://github.com/golang/go synced 2024-11-21 22:14:41 -07:00
The Go programming language
Go to file
Russ Cox 26dde76cee gopack: handle long lines in export data
Also, if the header is bad, exit with a non-zero status.

Other calls to Brdline in the tree, by category:

Reading symbol name from object file:
./cmd/5l/obj.c:486: 		name = Brdline(f, '\0');
./cmd/6l/obj.c:535: 		name = Brdline(f, '\0');
./cmd/8l/obj.c:564: 		name = Brdline(f, '\0');
./libmach/sym.c:292: 		cp = Brdline(bp, '\0');

Reading archive header line (fixed, short):
./cmd/gc/lex.c:287: 	if((a = Brdline(b, '\n')) == nil)
./cmd/gc/lex.c:303: 	if((p = Brdline(b, '\n')) == nil)

Reading object file header line (fixed, short):
./cmd/ld/lib.c:421: 	line = Brdline(f, '\n');

Reading undefined symbol list (unused code):
./cmd/ld/lib.c:773: 	while((l = Brdline(b, '\n')) != nil){

Implementing Brdstr:
./libbio/brdstr.c:36: 		p = Brdline(bp, delim);

The symbol names ones will cause a problem loudly if they
fail: they'll error out with symbol name too long.  This means
that you can't define an enormous struct without giving the
type a name and then stick it in an interface, because the
type's symbol name will be too long for the object file.
Since this will be a loud failure instead of a silent one,
I'm willing to wait until it comes up in practice.

R=r
CC=golang-dev
https://golang.org/cl/1982041
2010-08-11 22:17:20 -07:00
doc release.2010-08-04 2010-08-05 13:18:49 +10:00
include cov and prof: implement windows version (just function stubs and build mods) 2010-07-30 11:47:11 +10:00
lib doc: update front page and go_learning.html 2010-07-30 10:36:13 +10:00
misc misc/vim: highlight misspelled words only in comments 2010-08-05 10:31:00 +10:00
pkg more description 2009-10-15 23:08:46 -07:00
src gopack: handle long lines in export data 2010-08-11 22:17:20 -07:00
test gopack: handle long lines in export data 2010-08-11 22:17:20 -07:00
.hgignore hgignore: adds bin/ to support setting $GOBIN to $GOROOT/bin 2010-07-19 14:10:00 +10:00
.hgtags tag release.2010-08-04 2010-08-05 13:21:41 +10:00
AUTHORS A+C: Anschel Schaffer-Cohen (individual CLA) 2010-08-06 16:31:12 -07:00
CONTRIBUTORS A+C: Anschel Schaffer-Cohen (individual CLA) 2010-08-06 16:31:12 -07:00
favicon.ico add a favicon plus a couple of hi-res versions of gordon 2009-10-26 10:13:07 -07:00
LICENSE Add an explicit patent grant to the Go license. 2010-01-25 15:39:32 -08:00
README misc/builder: support for uploading tarballs to googlecode 2010-07-30 14:00:59 +10:00

This is the source code repository for the Go programming language.  

For documentation about how to install and use Go,
visit http://golang.org/ or load doc/install.html in your web browser.

After installing Go, you can view a nicely formatted
doc/install.html by running godoc --http=:6060
and then visiting http://localhost:6060/doc/install.html.

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

--

Binary Distribution Notes

If you have just untarred a binary Go distribution, then there are some
environment variables you'll need to set in your .profile (or equivalent):

    GOOS should be set to your operating system (eg, linux),
    GOARCH should be your processor architecture (eg, amd64),
    GOROOT should be the directory you extracted the tarball to,
    GOBIN should point to $GOROOT/bin.

For example, if you downloaded the tarball 

    go.release.YYYY-MM-DD.linux-amd64.tar.gz 

and extracted it to 

    /home/username/go

you would set the following variables:

    export GOOS=linux
    export GOARCH=amd64
    export GOROOT=/home/username/go
    export GOBIN=$GOROOT/bin

See doc/install.html for more detail about these flags.

Additionally, $GOROOT should be in your $PATH:
    
    export PATH=PATH:$GOROOT