1
0
mirror of https://github.com/golang/go synced 2024-10-04 12:31:21 -06:00
go/src/pkg
Russ Cox 2715956f13 build: add build comments to core packages
The go/build package already recognizes
system-specific file names like

        mycode_darwin.go
        mycode_darwin_386.go
        mycode_386.s

However, it is also common to write files that
apply to multiple architectures, so a recent CL added
to go/build the ability to process comments
listing a set of conditions for building.  For example:

        // +build darwin freebsd openbsd/386

says that this file should be compiled only on
OS X, FreeBSD, or 32-bit x86 OpenBSD systems.

These conventions are not yet documented
(hence this long CL description).

This CL adds build comments to the multi-system
files in the core library, a step toward making it
possible to use go/build to build them.

With this change go/build can handle crypto/rand,
exec, net, path/filepath, os/user, and time.

os and syscall need additional adjustments.

R=golang-dev, r, gri, r, gustavo
CC=golang-dev
https://golang.org/cl/5011046
2011-09-15 16:48:57 -04:00
..
archive archive/tar: when writing tar Headers write hdr.Linkname 2011-08-29 11:01:03 -07:00
asn1 time: make Weekday a method. 2011-09-12 11:47:55 -07:00
big build: clear execute bit from Go files 2011-09-05 07:48:42 -04:00
bufio bufio: handle a "\r\n" that straddles the buffer. 2011-08-25 08:44:12 +10:00
builtin builtin: correct description of a closed channel. 2011-08-16 16:03:30 +10:00
bytes bytes.Buffer: clarify that NewBuffer is not for beginners 2011-08-26 15:09:23 +10:00
cmath src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
compress go/printer: changed max. number of newlines from 3 to 2 2011-07-14 14:39:40 -07:00
container container/heap/heap_test.go: remove container/vector 2011-08-22 13:55:22 +10:00
crypto build: add build comments to core packages 2011-09-15 16:48:57 -04:00
csv go/printer: changed max. number of newlines from 3 to 2 2011-07-14 14:39:40 -07:00
debug debug/elf: permit another case of SHT_NOBITS section overlap in test 2011-09-14 15:33:37 -07:00
ebnf go/printer: changed max. number of newlines from 3 to 2 2011-07-14 14:39:40 -07:00
encoding go/printer: changed max. number of newlines from 3 to 2 2011-07-14 14:39:40 -07:00
exec build: add build comments to core packages 2011-09-15 16:48:57 -04:00
exp exp/template/html: pre-sanitized content 2011-09-15 08:51:55 -07:00
expvar go/printer: changed max. number of newlines from 3 to 2 2011-07-14 14:39:40 -07:00
flag flag: add Parsed, restore Usage 2011-08-31 17:38:41 -04:00
fmt fmt/fmt_test.go: count mallocs in a few more cases. 2011-09-02 11:47:15 +10:00
go go/build: change //build to // +build 2011-09-15 16:48:21 -04:00
gob doc: link to notable blog posts 2011-09-10 09:35:25 +10:00
hash hash/crc32: add SSE4.2 support 2011-07-12 09:29:24 -04:00
html html: parse more malformed tags. 2011-08-11 18:49:09 +10:00
http http/cgi: add openbsd environment configuration 2011-09-15 12:41:00 -07:00
image src: fix a couple of govet-discovered errors. 2011-09-14 13:29:31 -07:00
index/suffixarray godoc, suffixarray: switch to exp/regexp 2011-09-12 12:20:48 -07:00
io io: add TeeReader 2011-08-26 17:08:59 -04:00
json json: if a field's tag is "-", never encode it. 2011-09-15 08:09:43 +10:00
log log: more locking 2011-07-17 15:46:00 -07:00
mail time: make Weekday a method. 2011-09-12 11:47:55 -07:00
math build: clear execute bit from Go files 2011-09-05 07:48:42 -04:00
mime mime: fix build 2011-08-26 17:19:52 -04:00
net build: add build comments to core packages 2011-09-15 16:48:57 -04:00
netchan os.Error API: don't export os.ErrorString, use os.NewError consistently 2011-06-22 10:52:47 -07:00
old/template template: delete old template code. 2011-08-17 14:34:48 +10:00
os build: add build comments to core packages 2011-09-15 16:48:57 -04:00
patch strings.Split: make the default to split all. 2011-06-28 09:43:14 +10:00
path build: add build comments to core packages 2011-09-15 16:48:57 -04:00
rand os.Error API: don't export os.ErrorString, use os.NewError consistently 2011-06-22 10:52:47 -07:00
reflect doc: link to notable blog posts 2011-09-10 09:35:25 +10:00
regexp regexp: document that Regexp is thread-safe. 2011-06-29 15:41:09 +10:00
rpc rpc: add benchmark for async rpc calls 2011-08-31 13:07:25 -04:00
runtime runtime: eliminate handle churn when churning channels on Windows 2011-09-14 20:23:21 -04:00
scanner scanner: correct error position for illegal UTF-8 encodings 2011-08-08 13:54:32 -07:00
smtp strings.Split: make the default to split all. 2011-06-28 09:43:14 +10:00
sort sort: use heapsort to bail out quicksort 2011-09-07 13:54:33 -04:00
strconv strconv: put decimal on stack 2011-08-25 17:54:14 -04:00
strings go/printer: changed max. number of newlines from 3 to 2 2011-07-14 14:39:40 -07:00
sync sync/atomic: add 64-bit Load and Store 2011-09-08 11:58:48 +04:00
syscall build: add build comments to core packages 2011-09-15 16:48:57 -04:00
syslog os.Error API: don't export os.ErrorString, use os.NewError consistently 2011-06-22 10:52:47 -07:00
tabwriter go/printer: changed max. number of newlines from 3 to 2 2011-07-14 14:39:40 -07:00
template template: add doc.go to Makefile 2011-09-13 18:50:02 -07:00
testing testing: output benchmark name before executing it 2011-07-21 11:31:07 -04:00
time build: add build comments to core packages 2011-09-15 16:48:57 -04:00
try fix tree for reflect rename 2011-04-25 13:39:36 -04:00
unicode unicode: fix case-mapping for roman numerals!! 2011-07-27 15:54:23 -07:00
unsafe unsafe: update doc 2011-08-31 17:59:35 -04:00
url url: handle ; in ParseQuery 2011-09-06 12:24:24 -04:00
utf8 utf8: rename some internal constants to remove leading underscores. 2011-08-12 11:50:46 +10:00
utf16
websocket websocket: rename websocket.WebSocketAddr to *websocket.Addr. 2011-09-14 11:29:11 -04:00
xml xml: marshal "parent>child" tags correctly 2011-08-26 12:29:52 -03:00
deps.bash build: use awk instead of giant egrep regexp 2011-06-16 00:04:24 -04:00
Makefile exp/regexp: bug fixes and RE2 tests 2011-09-07 15:48:06 -04:00