From 13ac778ef2f757c7cd636b4336a2bd6c8f403b43 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Tue, 15 Dec 2009 15:40:16 -0800 Subject: 1) Change default gofmt default settings for parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 4th set of files. R=rsc CC=golang-dev http://codereview.appspot.com/180049 --- src/pkg/os/sys_freebsd.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pkg/os/sys_freebsd.go') diff --git a/src/pkg/os/sys_freebsd.go b/src/pkg/os/sys_freebsd.go index cc8daeca3..c567f5c35 100644 --- a/src/pkg/os/sys_freebsd.go +++ b/src/pkg/os/sys_freebsd.go @@ -7,10 +7,10 @@ package os import "syscall" func Hostname() (name string, err Error) { - var errno int; - name, errno = syscall.Sysctl("kern.hostname"); + var errno int + name, errno = syscall.Sysctl("kern.hostname") if errno != 0 { return "", NewSyscallError("sysctl kern.hostname", errno) } - return name, nil; + return name, nil } -- cgit v1.2.3