go/src/pkg/time
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
..
Makefile time: fix zone during windows test 2011-08-26 15:15:23 -04:00
format.go time: make Weekday a method. 2011-09-12 11:47:55 -07:00
internal_test.go time: fix zone during windows test 2011-08-26 15:15:23 -04:00
sleep.go time: Remove unnecessary call to Nanoseconds() in after(). 2011-05-23 12:38:51 -07:00
sleep_test.go time: fix zone during windows test 2011-08-26 15:15:23 -04:00
sys.go time: add support for Plan 9 2011-06-19 16:36:33 +10:00
sys_plan9.go time: fix zone during windows test 2011-08-26 15:15:23 -04:00
sys_unix.go build: add build comments to core packages 2011-09-15 16:48:57 -04:00
sys_windows.go time: fix zone during windows test 2011-08-26 15:15:23 -04:00
tick.go os.Error API: don't export os.ErrorString, use os.NewError consistently 2011-06-22 10:52:47 -07:00
tick_test.go
time.go time: make Weekday a method. 2011-09-12 11:47:55 -07:00
time_test.go time: make Weekday a method. 2011-09-12 11:47:55 -07:00
zoneinfo_plan9.go time: fix Plan 9 build 2011-08-29 09:35:08 -04:00
zoneinfo_posix.go build: add build comments to core packages 2011-09-15 16:48:57 -04:00
zoneinfo_unix.go build: add build comments to core packages 2011-09-15 16:48:57 -04:00
zoneinfo_windows.go time: another attempt to fix windows build 2011-09-13 12:42:24 +10:00