1
0
mirror of https://github.com/golang/go synced 2024-09-25 09:10:14 -06:00
The Go programming language
Go to file
Icarus Sparry 090e71e7fd os: in test, allow Hostname to return FQDN even if /bin/hostname does not
Hostname reads the file /proc/sys/kernel/hostname to determine
the value it returns. Some people set this to a Fully Qualified
Doamin Name. At least one implementation of /bin/hostname
truncates the name it gets (often from the "uname" system call)
at the first dot unless it is given a "-f" flag. This change makes
the unit test also truncate at the first dot and checks if the strings
then match. This seems more portable than adding an extra flag
to the called /bin/hostname program.

R=rsc
CC=golang-dev
https://golang.org/cl/181097
2010-01-26 13:16:03 -08:00
doc spec: allow func() func(). 2010-01-26 10:25:56 -08:00
include libc: add goos, goarch, goroot. fixes build 2010-01-19 09:08:05 -08:00
lib codereview: accommodate recent change to ui.prompt 2010-01-20 09:49:35 -08:00
misc dashboard: add benchmarking support. 2010-01-26 12:56:29 -08:00
pkg more description 2009-10-15 23:08:46 -07:00
src os: in test, allow Hostname to return FQDN even if /bin/hostname does not 2010-01-26 13:16:03 -08:00
test gc: fix chan <- chan precedence. 2010-01-26 10:40:28 -08:00
.hgignore Replicate signal names from syscall in os/signal. 2010-01-11 11:23:46 -08:00
.hgtags .hgtags: add release, release.2010-01-13 2010-01-13 17:12:14 -08:00
AUTHORS A+C: add Icarus Sparry (individual CLA) 2010-01-26 13:15:53 -08:00
CONTRIBUTORS A+C: add Icarus Sparry (individual CLA) 2010-01-26 13:15:53 -08: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 add a README file, so that if someone finds a 2009-11-08 09:57:37 -08: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.