]> Cypherpunks repositories - gostls13.git/commitdiff
gofmt: apply gofmt -w src misc
authorRobert Griesemer <gri@golang.org>
Tue, 30 Oct 2012 20:38:01 +0000 (13:38 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 30 Oct 2012 20:38:01 +0000 (13:38 -0700)
Remove trailing whitespace in comments.
No other changes.

R=r
CC=golang-dev
https://golang.org/cl/6815053

136 files changed:
misc/cgo/test/callback.go
misc/cgo/test/cgo_test.go
misc/cgo/test/issue1560.go
misc/cgo/test/issue4029.go
misc/dashboard/app/build/build.go
misc/dashboard/builder/doc.go
misc/dashboard/builder/exec.go
misc/dashboard/builder/main.go
misc/dashboard/codereview/dashboard/cl.go
misc/goplay/doc.go
misc/goplay/goplay.go
src/cmd/cgo/gcc.go
src/cmd/fix/osopen.go
src/cmd/fix/reflect.go
src/cmd/fix/typecheck.go
src/cmd/go/build.go
src/cmd/go/doc.go
src/cmd/go/get.go
src/cmd/go/testflag.go
src/cmd/godoc/dirtrees.go
src/cmd/godoc/filesystem.go
src/cmd/godoc/format.go
src/cmd/godoc/template.go
src/cmd/nm/doc.go
src/cmd/vet/doc.go
src/pkg/archive/zip/writer.go
src/pkg/bytes/bytes_test.go
src/pkg/compress/bzip2/bit_reader.go
src/pkg/crypto/rsa/rsa.go
src/pkg/crypto/tls/conn.go
src/pkg/crypto/x509/cert_pool.go
src/pkg/crypto/x509/pkcs8.go
src/pkg/crypto/x509/x509.go
src/pkg/encoding/gob/encoder.go
src/pkg/encoding/json/encode.go
src/pkg/exp/html/doctype.go
src/pkg/exp/html/escape.go
src/pkg/exp/html/parse.go
src/pkg/exp/html/render.go
src/pkg/exp/html/token.go
src/pkg/exp/locale/collate/build/builder.go
src/pkg/exp/locale/collate/build/colelem.go
src/pkg/exp/locale/collate/build/contract.go
src/pkg/exp/locale/collate/build/trie.go
src/pkg/exp/locale/collate/build/trie_test.go
src/pkg/exp/locale/collate/collate.go
src/pkg/exp/locale/collate/table.go
src/pkg/exp/locale/collate/trie.go
src/pkg/exp/locale/collate/trie_test.go
src/pkg/exp/norm/forminfo.go
src/pkg/exp/norm/iter.go
src/pkg/exp/norm/maketables.go
src/pkg/exp/norm/maketesttables.go
src/pkg/exp/norm/normregtest.go
src/pkg/exp/types/staging/const.go
src/pkg/exp/types/staging/expr.go
src/pkg/exp/types/staging/operand.go
src/pkg/fmt/doc.go
src/pkg/fmt/print.go
src/pkg/fmt/scan.go
src/pkg/go/ast/commentmap.go
src/pkg/go/ast/filter.go
src/pkg/go/ast/resolve.go
src/pkg/go/build/deps_test.go
src/pkg/go/build/doc.go
src/pkg/go/doc/comment.go
src/pkg/go/doc/example.go
src/pkg/go/doc/exports.go
src/pkg/go/doc/reader.go
src/pkg/go/doc/testdata/e.go
src/pkg/go/doc/testdata/testing.go
src/pkg/go/parser/interface.go
src/pkg/go/printer/performance_test.go
src/pkg/go/token/position.go
src/pkg/html/escape.go
src/pkg/html/template/content.go
src/pkg/html/template/error.go
src/pkg/html/template/html.go
src/pkg/math/big/int.go
src/pkg/math/big/nat.go
src/pkg/math/big/nat_test.go
src/pkg/net/dial_test.go
src/pkg/net/dnsclient.go
src/pkg/net/example_test.go
src/pkg/net/fd_unix_test.go
src/pkg/net/http/chunked.go
src/pkg/net/http/cookie.go
src/pkg/net/http/cookie_test.go
src/pkg/net/http/httputil/chunked.go
src/pkg/net/http/proxy_test.go
src/pkg/net/http/request_test.go
src/pkg/net/http/serve_test.go
src/pkg/net/http/transport.go
src/pkg/net/rpc/client.go
src/pkg/net/rpc/server.go
src/pkg/net/unicast_posix_test.go
src/pkg/old/netchan/export.go
src/pkg/os/dir_plan9.go
src/pkg/os/error.go
src/pkg/os/exec/exec.go
src/pkg/os/file.go
src/pkg/os/stat_plan9.go
src/pkg/os/user/lookup_unix.go
src/pkg/path/filepath/path.go
src/pkg/reflect/all_test.go
src/pkg/reflect/set_test.go
src/pkg/reflect/type.go
src/pkg/reflect/value.go
src/pkg/regexp/exec_test.go
src/pkg/regexp/regexp.go
src/pkg/regexp/syntax/compile.go
src/pkg/regexp/syntax/parse.go
src/pkg/runtime/mem.go
src/pkg/runtime/race.go
src/pkg/runtime/stack_test.go
src/pkg/runtime/vlop_arm_test.go
src/pkg/sort/search.go
src/pkg/strconv/extfloat.go
src/pkg/strings/strings_test.go
src/pkg/syscall/exec_plan9.go
src/pkg/syscall/syscall_plan9.go
src/pkg/syscall/types_linux.go
src/pkg/syscall/zsysnum_freebsd_386.go
src/pkg/syscall/zsysnum_freebsd_amd64.go
src/pkg/syscall/zsysnum_freebsd_arm.go
src/pkg/syscall/zsysnum_linux_arm.go
src/pkg/syscall/zsysnum_netbsd_386.go
src/pkg/syscall/zsysnum_netbsd_amd64.go
src/pkg/syscall/zsysnum_openbsd_386.go
src/pkg/syscall/zsysnum_openbsd_amd64.go
src/pkg/testing/testing.go
src/pkg/text/template/example_test.go
src/pkg/time/zoneinfo_read.go
src/pkg/time/zoneinfo_windows.go
src/pkg/unicode/letter.go
src/pkg/unicode/letter_test.go

index e6a1462b3e7fdbb01d24765aebcfdaf8f778a95c..4f5d3f855f81b0f0b795bc2f0726298f424f2dd1 100644 (file)
@@ -110,7 +110,7 @@ func testZeroArgCallback(t *testing.T) {
 func goFoo() {
        x := 1
        for i := 0; i < 10000; i++ {
-               // variadic call mallocs + writes to 
+               // variadic call mallocs + writes to
                variadic(x, x, x)
                if x != 1 {
                        panic("bad x")
index 682e292a7036a777a5acae1432d4009ae1bd0942..a423195f48e55fd7b5ab8a295586ca7a20b39039 100644 (file)
@@ -6,7 +6,7 @@ package cgotest
 
 import "testing"
 
-// The actual test functions are in non-_test.go files 
+// The actual test functions are in non-_test.go files
 // so that they can use cgo (import "C").
 // These wrappers are here for gotest to find.
 
index 0f43b8bd0a4e83e0f7a0cfc33656e30419af3d43..147ce94b58cb88718335903cf46c56d1c8266e05 100644 (file)
@@ -35,8 +35,8 @@ func BackgroundSleep(n int32) {
        }()
 }
 
-// wasteCPU starts a background goroutine to waste CPU 
-// to cause the power management to raise the CPU frequency. 
+// wasteCPU starts a background goroutine to waste CPU
+// to cause the power management to raise the CPU frequency.
 // On ARM this has the side effect of making sleep more accurate.
 func wasteCPU() chan struct{} {
        done := make(chan struct{})
index a266cc64a0c95893445f45f4503c27c6afbb2d3c..7495d38feada4335970ab1526fa715edc3efe13e 100644 (file)
@@ -7,7 +7,7 @@
 package cgotest
 
 /*
-#include <dlfcn.h> 
+#include <dlfcn.h>
 #cgo linux LDFLAGS: -ldl
 */
 import "C"
index 52f9fb0d4af23fba8cd674e8afc79f7d7770f0df..53db3dda5b839929313f3e6a84fa23becf45d743 100644 (file)
@@ -183,7 +183,7 @@ type Result struct {
        Log     string `datastore:"-"`        // for JSON unmarshaling only
        LogHash string `datastore:",noindex"` // Key to the Log record.
 
-       RunTime int64 // time to build+test in nanoseconds 
+       RunTime int64 // time to build+test in nanoseconds
 }
 
 func (r *Result) Key(c appengine.Context) *datastore.Key {
index 30d8fe94889c5a232d80ab1d065375105636fa0e..707f8e68fd3e5667250ae0bd063a7e59e754d5da 100644 (file)
@@ -4,15 +4,15 @@
 
 /*
 
-Go Builder is a continuous build client for the Go project. 
+Go Builder is a continuous build client for the Go project.
 It integrates with the Go Dashboard AppEngine application.
 
 Go Builder is intended to run continuously as a background process.
 
-It periodically pulls updates from the Go Mercurial repository. 
+It periodically pulls updates from the Go Mercurial repository.
 
 When a newer revision is found, Go Builder creates a clone of the repository,
-runs all.bash, and reports build success or failure to the Go Dashboard. 
+runs all.bash, and reports build success or failure to the Go Dashboard.
 
 For a release revision (a change description that matches "release.YYYY-MM-DD"),
 Go Builder will create a tar.gz archive of the GOROOT and deliver it to the
@@ -22,7 +22,7 @@ Usage:
 
   gobuilder goos-goarch...
 
-  Several goos-goarch combinations can be provided, and the builder will 
+  Several goos-goarch combinations can be provided, and the builder will
   build them in serial.
 
 Optional flags:
index 6ebe7b8bf4748bf68797e3c28089a14ebb800c4e..bf5c28d47d70350227d7e8b00338e66049664fce 100644 (file)
@@ -29,7 +29,7 @@ func run(timeout time.Duration, envv []string, dir string, argv ...string) error
        return waitWithTimeout(timeout, cmd)
 }
 
-// runLog runs a process and returns the combined stdout/stderr, 
+// runLog runs a process and returns the combined stdout/stderr,
 // as well as writing it to logfile (if specified). It returns
 // process combined stdout and stderr output, exit status and error.
 // The error returned is nil, if process is started successfully,
index 5e30115edf12670179959b0b29db57be7258148a..03999db170f6dea1f70703f793a164f74f531c63 100644 (file)
@@ -208,7 +208,7 @@ func NewBuilder(builder string) (*Builder, error) {
 }
 
 // build checks for a new commit for this builder
-// and builds it if one is found. 
+// and builds it if one is found.
 // It returns true if a build was attempted.
 func (b *Builder) build() bool {
        hash, err := b.todo("build-go-commit", "", "")
@@ -286,7 +286,7 @@ func (b *Builder) buildHash(hash string) error {
 }
 
 // failBuild checks for a new commit for this builder
-// and fails it if one is found. 
+// and fails it if one is found.
 // It returns true if a build was "attempted".
 func (b *Builder) failBuild() bool {
        hash, err := b.todo("build-go-commit", "", "")
index dce2744257be06d82f5b99ec6bdd5507be0bf081..e150ea123d1b84df2bc884f506c9b1cc6dd3f510 100644 (file)
@@ -434,7 +434,7 @@ func updateCL(c appengine.Context, n string) error {
 // trailingSpaceRE matches trailing spaces.
 var trailingSpaceRE = regexp.MustCompile(`(?m)[ \t\r]+$`)
 
-// removeRE is the list of patterns to skip over at the beginning of a 
+// removeRE is the list of patterns to skip over at the beginning of a
 // message when looking for message text.
 var removeRE = regexp.MustCompile(`(?m-s)\A(` +
        // Skip leading "Hello so-and-so," generated by codereview plugin.
index fd4a28e71e2efb3d09b0c641f060bdc9044bcc74..e4e88629123f326df4d9ae273cbf03a424256213 100644 (file)
@@ -4,20 +4,20 @@
 
 // Goplay is a web interface for experimenting with Go code.
 // It is similar to the Go Playground: http://golang.org/doc/play/
-// 
+//
 // To use goplay:
 //   $ cd $GOROOT/misc/goplay
 //   $ go run goplay.go
 // and load http://localhost:3999/ in a web browser.
-// 
+//
 // You should see a Hello World program, which you can compile and run by
 // pressing shift-enter. There is also a "compile-on-keypress" feature that can
 // be enabled by checking a checkbox.
-// 
+//
 // WARNING! CUIDADO! ACHTUNG! ATTENZIONE!
 // A note on security: anyone with access to the goplay web interface can run
 // arbitrary code on your computer. Goplay is not a sandbox, and has no other
-// security mechanisms. Do not deploy it in untrusted environments. 
-// By default, goplay listens only on localhost. This can be overridden with 
+// security mechanisms. Do not deploy it in untrusted environments.
+// By default, goplay listens only on localhost. This can be overridden with
 // the -http parameter. Do so at your own risk.
 package documentation
index 9ce4f89aebac1eae647f2c12dde5cdc02994e668..94d04139dd6a063534db687e138378129806d1be 100644 (file)
@@ -44,7 +44,7 @@ func main() {
        log.Fatal(http.ListenAndServe(*httpListen, nil))
 }
 
-// FrontPage is an HTTP handler that renders the goplay interface. 
+// FrontPage is an HTTP handler that renders the goplay interface.
 // If a filename is supplied in the path component of the URI,
 // its contents will be put in the interface's text area.
 // Otherwise, the default "hello, world" program is displayed.
index 9d5fc22bc0894e3f254c95af9ea2958c916979d4..689c6eb0672e4c2a4b2d4c7f6f4a276c8012295c 100644 (file)
@@ -1562,7 +1562,7 @@ func godefsFields(fld []*ast.Field) {
 }
 
 // fieldPrefix returns the prefix that should be removed from all the
-// field names when generating the C or Go code.  For generated 
+// field names when generating the C or Go code.  For generated
 // C, we leave the names as is (tv_sec, tv_usec), since that's what
 // people are used to seeing in C.  For generated Go code, such as
 // package syscall's data structures, we drop a common prefix
@@ -1579,7 +1579,7 @@ func fieldPrefix(fld []*ast.Field) string {
                        // named, say, _pad in an otherwise prefixed header.
                        // If the struct has 3 fields tv_sec, tv_usec, _pad1, then we
                        // still want to remove the tv_ prefix.
-                       // The check for "orig_" here handles orig_eax in the 
+                       // The check for "orig_" here handles orig_eax in the
                        // x86 ptrace register sets, which otherwise have all fields
                        // with reg_ prefixes.
                        if strings.HasPrefix(n.Name, "orig_") || strings.HasPrefix(n.Name, "_") {
index af2796ac225cc615d11933ff22ca34d5e5d1a236..5fe4cd067f9581b0db9df555c04c3d88f139c243 100644 (file)
@@ -91,7 +91,7 @@ func isCreateFlag(flag ast.Expr) bool {
                case "O_TRUNC":
                        foundTrunc = true
                case "O_RDONLY", "O_WRONLY", "O_RDWR":
-                       // okay 
+                       // okay
                default:
                        // Unexpected flag, like O_APPEND or O_EXCL.
                        // Be conservative and do not rewrite.
index 151da569de27bf34caaf460a4e4997be5e3c1c07..a81f4854670aad27811c91c8f2c60f9eccbf13d4 100644 (file)
@@ -42,7 +42,7 @@ http://codereview.appspot.com/4433066
 //
 // If z is an ordinary variable name and x is not subsequently assigned to,
 // references to x can be replaced by z and the assignment deleted.
-// We only bother if x and z are the same name.  
+// We only bother if x and z are the same name.
 // If y is not subsequently assigned to and neither is x, references to
 // y can be replaced by its expression.  We only bother when there is
 // just one use or when the use appears in an if clause.
@@ -76,14 +76,14 @@ http://codereview.appspot.com/4433066
 //
 // Because the type check assignment includes a type assertion in its
 // syntax and the rewrite traversal is bottom up, we must do a pass to
-// rewrite the type check assignments and then a separate pass to 
+// rewrite the type check assignments and then a separate pass to
 // rewrite the type assertions.
 //
 // The same process applies to the API changes for reflect.Value.
 //
 // For both cases, but especially Value, the code needs to be aware
 // of the type of a receiver when rewriting a method call.   For example,
-// x.(*reflect.ArrayValue).Elem(i) becomes x.Index(i) while 
+// x.(*reflect.ArrayValue).Elem(i) becomes x.Index(i) while
 // x.(*reflect.MapValue).Elem(v) becomes x.MapIndex(v).
 // In general, reflectFn needs to know the type of the receiver expression.
 // In most cases (and in all the cases in the Go source tree), the toy
index 8e54314d14559503b323a093018f602fbc2e2600..d54d375478dbdbe9bec388e54f62cc13103e2801 100644 (file)
@@ -17,7 +17,7 @@ import (
 //
 // The fact that it is partial is very important: the input is
 // an AST and a description of some type information to
-// assume about one or more packages, but not all the 
+// assume about one or more packages, but not all the
 // packages that the program imports.  The checker is
 // expected to do as much as it can with what it has been
 // given.  There is not enough information supplied to do
index 05cf84d2bd0d7dc9d607c3000e27dd0949320190..5dff122c8c48e74feb1db4225440ac5c781bfedf 100644 (file)
@@ -1120,7 +1120,7 @@ func (b *builder) runOut(dir string, desc string, cmdargs ...interface{}) ([]byt
                // not worry about other processes inheriting the fd accidentally.
                // The answer is that running a command is fork and exec.
                // A child forked while the cgo fd is open inherits that fd.
-               // Until the child has called exec, it holds the fd open and the 
+               // Until the child has called exec, it holds the fd open and the
                // kernel will not let us run cgo.  Even if the child were to close
                // the fd explicitly, it would still be open from the time of the fork
                // until the time of the explicit close, and the race would remain.
index 9e728163f832bf0acabc28aac215b47cee0e2b62..588a06173351a9f3bd4d31eb10feef5f785bf682 100644 (file)
@@ -493,7 +493,7 @@ Here's an example directory layout:
                     bar.a          (installed package object)
 
 Go searches each directory listed in GOPATH to find source code,
-but new packages are always downloaded into the first directory 
+but new packages are always downloaded into the first directory
 in the list.
 
 
@@ -511,13 +511,13 @@ denotes the package in that directory.
 
 Otherwise, the import path P denotes the package found in
 the directory DIR/src/P for some DIR listed in the GOPATH
-environment variable (see 'go help gopath'). 
+environment variable (see 'go help gopath').
 
 If no import paths are given, the action applies to the
 package in the current directory.
 
 The special import path "all" expands to all package directories
-found in all the GOPATH trees.  For example, 'go list all' 
+found in all the GOPATH trees.  For example, 'go list all'
 lists all the packages on the local system.
 
 The special import path "std" is like all but expands to just the
index fe45697e28d05abb044ce2755ed8f805b367518b..7d046fb8c550521b7c293888530288d856979a9a 100644 (file)
@@ -105,7 +105,7 @@ func downloadPaths(args []string) []string {
                if strings.Contains(a, "...") {
                        var expand []string
                        // Use matchPackagesInFS to avoid printing
-                       // warnings.  They will be printed by the 
+                       // warnings.  They will be printed by the
                        // eventual call to importPaths instead.
                        if build.IsLocalImport(a) {
                                expand = matchPackagesInFS(a)
index d73bfde20dc840cfacb6a6dea4e3b00922f905f0..6d3b2bed31e8b4a14558fe297c9d1a4e60635cd6 100644 (file)
@@ -124,7 +124,7 @@ func testFlags(args []string) (packageNames, passToTest []string) {
                f, value, extraWord := testFlag(args, i)
                if f == nil {
                        // This is a flag we do not know; we must assume
-                       // that any args we see after this might be flag 
+                       // that any args we see after this might be flag
                        // arguments, not package names.
                        inPkg = false
                        if packageNames == nil {
index b9b529f87ad82f0970083f390a864985504eb1f9..29bd39e6b0d3cc1072cbb6177971a305b8c080fb 100644 (file)
@@ -264,7 +264,7 @@ type DirEntry struct {
        Height   int    // = DirList.MaxHeight - Depth, > 0
        Path     string // directory path; includes Name, relative to DirList root
        Name     string // directory name
-       HasPkg   bool   // true if the directory contains at least one package 
+       HasPkg   bool   // true if the directory contains at least one package
        Synopsis string // package documentation, if any
 }
 
index 09d7b2463c271abecbfac6b6d0de33e350011cd7..c4afbed80077370ef8f4749b9c4f1e84c3da83a9 100644 (file)
@@ -41,7 +41,7 @@ import (
 // paths can assume they are slash-separated and should be using
 // package path (often imported as pathpkg) to manipulate them,
 // even on Windows.
-// 
+//
 var fs = nameSpace{} // the underlying file system for godoc
 
 // Setting debugNS = true will enable debugging prints about
@@ -138,7 +138,7 @@ func hasPathPrefix(x, y string) bool {
 // but we want to be able to mount multiple file systems on a single
 // mount point and have the system behave as if the union of those
 // file systems were present at the mount point.
-// For example, if the OS file system has a Go installation in 
+// For example, if the OS file system has a Go installation in
 // c:\Go and additional Go path trees in  d:\Work1 and d:\Work2, then
 // this name space creates the view we want for the godoc server:
 //
@@ -179,7 +179,7 @@ func hasPathPrefix(x, y string) bool {
 //     OS(`d:\Work1').ReadDir("/src/code")
 //     OS(`d:\Work2').ReadDir("/src/code")
 //
-// Note that the "/src/pkg" in "/src/pkg/code" has been replaced by 
+// Note that the "/src/pkg" in "/src/pkg/code" has been replaced by
 // just "/src" in the final two calls.
 //
 // OS is itself an implementation of a file system: it implements
index f9cbdf53cdef3daf4aacfdced4d717776883c573..122ddc7d62558c35acc65db786a4c9a2e66fdd5b 100644 (file)
@@ -121,7 +121,7 @@ func FormatSelections(w io.Writer, text []byte, lw LinkWriter, links Selection,
                } else {
                        // we have a selection change:
                        // format the previous selection segment, determine
-                       // the new selection bitset and start a new segment 
+                       // the new selection bitset and start a new segment
                        segment(offs)
                        lastOffs = offs
                        mask := 1 << uint(index)
index d709baef493389f164ae26e3fecaad474b4facb6..c96bf5bc4e1b7c68b27420c1259300c58ca902ff 100644 (file)
@@ -3,7 +3,7 @@
 // license that can be found in the LICENSE file.
 
 // Template support for writing HTML documents.
-// Documents that include Template: true in their 
+// Documents that include Template: true in their
 // metadata are executed as input to text/template.
 //
 // This file defines functions for those templates to invoke.
index c84369a5fdc2a8a6401dd6fabb88ea8093bad366..004567cad2eb288ad4a99de6f55389e07df0b1e5 100644 (file)
@@ -11,7 +11,7 @@ Nm is a version of the Plan 9 nm command.  The original is documented at
 It prints the name list (symbol table) for programs compiled by gc as well as the
 Plan 9 C compiler.
 
-This implementation adds the flag -S, which prints each symbol's size 
+This implementation adds the flag -S, which prints each symbol's size
 in decimal after its address.
 
 Usage:
index be51ec8077265ce650efe834cb5e4f53d37531a6..d19a42fde16382e3b4501ca7818f30faa66db5fc 100644 (file)
@@ -35,7 +35,7 @@ Printf.
 
 Non-standard signatures for methods with familiar names, including:
        Format GobEncode GobDecode MarshalJSON MarshalXML
-       Peek ReadByte ReadFrom ReadRune Scan Seek 
+       Peek ReadByte ReadFrom ReadRune Scan Seek
        UnmarshalJSON UnreadByte UnreadRune WriteByte
        WriteTo
 
index 50d83946d2cd264d79767a8f951ac789727fbf90..4c696e1529e8d08cfe45c10a93c20c9903e19fba 100644 (file)
@@ -174,7 +174,7 @@ func (w *Writer) Create(name string) (io.Writer, error) {
 }
 
 // CreateHeader adds a file to the zip file using the provided FileHeader
-// for the file metadata. 
+// for the file metadata.
 // It returns a Writer to which the file contents should be written.
 // The file's contents must be written to the io.Writer before the next
 // call to Create, CreateHeader, or Close.
index 124760ac741d0bba559490177f6c903c32585d4d..2311329ad05dd1cbac45f3d6ea75184ba99b402f 100644 (file)
@@ -1026,7 +1026,7 @@ func TestEqualFold(t *testing.T) {
 
 var makeFieldsInput = func() []byte {
        x := make([]byte, 1<<20)
-       // Input is ~10% space, ~10% 2-byte UTF-8, rest ASCII non-space. 
+       // Input is ~10% space, ~10% 2-byte UTF-8, rest ASCII non-space.
        for i := range x {
                switch rand.Intn(10) {
                case 0:
index 0141d469c300b5d05639dd3783300257693c7c4a..ab1d60651436bd5a0b8118b46d5bb7f58c24869a 100644 (file)
@@ -20,7 +20,7 @@ type bitReader struct {
        err  error
 }
 
-// newBitReader returns a new bitReader reading from r. If r is not 
+// newBitReader returns a new bitReader reading from r. If r is not
 // already an io.ByteReader, it will be converted via a bufio.Reader.
 func newBitReader(r io.Reader) bitReader {
        byter, ok := r.(io.ByteReader)
index 7faae67430441771092cd5fc4d25e41c45bedfe7..6addd04bce1e36dd4fd173ec4a1434d9877219f3 100644 (file)
@@ -61,7 +61,7 @@ type PrivateKey struct {
 }
 
 type PrecomputedValues struct {
-       Dp, Dq *big.Int // D mod (P-1) (or mod Q-1) 
+       Dp, Dq *big.Int // D mod (P-1) (or mod Q-1)
        Qinv   *big.Int // Q^-1 mod Q
 
        // CRTValues is used for the 3rd and subsequent primes. Due to a
index 74ae650f6e190950564be168d30cb977190c6e00..44f3e66daed42c8b9741511ef7dbbf1f29d2df9b 100644 (file)
@@ -513,7 +513,7 @@ Again:
                // First message, be extra suspicious:
                // this might not be a TLS client.
                // Bail out before reading a full 'body', if possible.
-               // The current max version is 3.1. 
+               // The current max version is 3.1.
                // If the version is >= 16.0, it's probably not real.
                // Similarly, a clientHello message encodes in
                // well under a kilobyte.  If the length is >= 12 kB,
index 616a0b3c1e8570b5d2b236f0ddf32f5ffb8d34ba..505f4d4f7762a03b91b64412f3710928b2e8140b 100644 (file)
@@ -103,7 +103,7 @@ func (s *CertPool) AppendCertsFromPEM(pemCerts []byte) (ok bool) {
 }
 
 // Subjects returns a list of the DER-encoded subjects of
-// all of the certificates in the pool. 
+// all of the certificates in the pool.
 func (s *CertPool) Subjects() (res [][]byte) {
        res = make([][]byte, len(s.certs))
        for i, c := range s.certs {
index 8c3b65f80784d2d2f85cee957efeb7bc005211b5..539d1c5238015d7bf3e8082f336a9efe30af440b 100644 (file)
@@ -11,7 +11,7 @@ import (
        "fmt"
 )
 
-// pkcs8 reflects an ASN.1, PKCS#8 PrivateKey. See 
+// pkcs8 reflects an ASN.1, PKCS#8 PrivateKey. See
 // ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-8/pkcs-8v1_2.asn.
 type pkcs8 struct {
        Version    int
index 5cfd09008ca0e65c0ae15b0a0e87e4af1daa0d84..7983217696e57cb2b09ba2449fe022c531f93275 100644 (file)
@@ -156,8 +156,8 @@ const (
 //
 // pkcs-1 OBJECT IDENTIFIER ::= {
 //    iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 1 }
-// 
-// 
+//
+//
 // RFC 3279 2.2.1 RSA Signature Algorithms
 //
 // md2WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 2 }
@@ -165,19 +165,19 @@ const (
 // md5WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 4 }
 //
 // sha-1WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 5 }
-// 
+//
 // dsaWithSha1 OBJECT IDENTIFIER ::= {
-//    iso(1) member-body(2) us(840) x9-57(10040) x9cm(4) 3 } 
+//    iso(1) member-body(2) us(840) x9-57(10040) x9cm(4) 3 }
 //
 // RFC 3279 2.2.3 ECDSA Signature Algorithm
-// 
+//
 // ecdsa-with-SHA1 OBJECT IDENTIFIER ::= {
 //       iso(1) member-body(2) us(840) ansi-x962(10045)
 //    signatures(4) ecdsa-with-SHA1(1)}
 //
 //
 // RFC 4055 5 PKCS #1 Version 1.5
-// 
+//
 // sha256WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 11 }
 //
 // sha384WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 12 }
index 51444bb5269f2dc177702a138f89dd1bd1011242..284decedead5382a6360592110fc1713702778e1 100644 (file)
@@ -132,7 +132,7 @@ func (enc *Encoder) sendActualType(w io.Writer, state *encoderState, ut *userTyp
        return true
 }
 
-// sendType sends the type info to the other side, if necessary. 
+// sendType sends the type info to the other side, if necessary.
 func (enc *Encoder) sendType(w io.Writer, state *encoderState, origt reflect.Type) (sent bool) {
        ut := userType(origt)
        if ut.isGobEncoder {
index c8535ef79d6f5e832cc77fa8bf47d5ed6aca9689..a5803b4623d3c402b78e4ab9567bf6c6d7f0d825 100644 (file)
@@ -86,7 +86,7 @@ import (
 //
 // Anonymous struct fields are usually marshaled as if their inner exported fields
 // were fields in the outer struct, subject to the usual Go visibility rules.
-// An anonymous struct field with a name given in its JSON tag is treated as 
+// An anonymous struct field with a name given in its JSON tag is treated as
 // having that name instead of as anonymous.
 //
 // Handling of anonymous struct fields is new in Go 1.1.
index f692061a551f7ac6df4a8571dd238de4e45b294a..c484e5a94fbf0a38b9c1789356f9f152ccaec4d2 100644 (file)
@@ -9,7 +9,7 @@ import (
 )
 
 // parseDoctype parses the data from a DoctypeToken into a name,
-// public identifier, and system identifier. It returns a Node whose Type 
+// public identifier, and system identifier. It returns a Node whose Type
 // is DoctypeNode, whose Data is the name, and which has attributes
 // named "system" and "public" for the two identifiers if they were present.
 // quirks is whether the document should be parsed in "quirks mode".
index 7827dc2d506637e37b4cc5a08c9775ee0c68a035..75bddff094f3cb70e1cc0c7936ebdd458612e422 100644 (file)
@@ -10,7 +10,7 @@ import (
        "unicode/utf8"
 )
 
-// These replacements permit compatibility with old numeric entities that 
+// These replacements permit compatibility with old numeric entities that
 // assumed Windows-1252 encoding.
 // http://www.whatwg.org/specs/web-apps/current-work/multipage/tokenization.html#consume-a-character-reference
 var replacementTable = [...]rune{
@@ -46,7 +46,7 @@ var replacementTable = [...]rune{
        '\u009D',
        '\u017E',
        '\u0178', // Last entry is 0x9F.
-       // 0x00->'\uFFFD' is handled programmatically. 
+       // 0x00->'\uFFFD' is handled programmatically.
        // 0x0D->'\u000D' is a no-op.
 }
 
index cae836e14b4894dcd586a29473c6fd1b4de62a46..0ff15746f2189570df063ec8482e5837e356960d 100644 (file)
@@ -2027,7 +2027,7 @@ func Parse(r io.Reader) (*Node, error) {
        return p.doc, nil
 }
 
-// ParseFragment parses a fragment of HTML and returns the nodes that were 
+// ParseFragment parses a fragment of HTML and returns the nodes that were
 // found. If the fragment is the InnerHTML for an existing element, pass that
 // element in context.
 func ParseFragment(r io.Reader, context *Node) ([]*Node, error) {
index 65b10046a48af535655e920010c020119b83a417..285dbc926e4ae65ffb7e89e1a0d1d42d3a481cf0 100644 (file)
@@ -35,7 +35,7 @@ type writer interface {
 // children; the <a> is reparented to the <table>'s parent. However, calling
 // Parse on "<a><table><a>" does not return an error, but the result has an <a>
 // element with an <a> child, and is therefore not 'well-formed'.
-// 
+//
 // Programmatically constructed trees are typically also 'well-formed', but it
 // is possible to construct a tree that looks innocuous but, when rendered and
 // re-parsed, results in a different tree. A simple example is that a solitary
@@ -53,7 +53,7 @@ func Render(w io.Writer, n *Node) error {
        return buf.Flush()
 }
 
-// plaintextAbort is returned from render1 when a <plaintext> element 
+// plaintextAbort is returned from render1 when a <plaintext> element
 // has been rendered. No more end tags should be rendered after that.
 var plaintextAbort = errors.New("html: internal error (plaintext abort)")
 
index 517bd5d3ee8dd39ebbba38aea80f7a06fe5886c9..f9a087b02d9e7e83b57412098bb8934b4b27ce09 100644 (file)
@@ -320,7 +320,7 @@ loop:
 }
 
 // readRawEndTag attempts to read a tag like "</foo>", where "foo" is z.rawTag.
-// If it succeeds, it backs up the input position to reconsume the tag and 
+// If it succeeds, it backs up the input position to reconsume the tag and
 // returns true. Otherwise it returns false. The opening "</" has already been
 // consumed.
 func (z *Tokenizer) readRawEndTag() bool {
index 97d5e81ddd04a62530c240d6073f930ae9123133..c931e2868ce7d002926f09badcecdb6d651f32bc 100644 (file)
@@ -25,7 +25,7 @@ import (
 //   compacted.
 // - Compress secondary weights into 8 bits.
 // - Some LDML specs specify a context element. Currently we simply concatenate
-//   those.  Context can be implemented using the contraction trie. If Builder 
+//   those.  Context can be implemented using the contraction trie. If Builder
 //   could analyze and detect when using a context makes sense, there is no
 //   need to expose this construct in the API.
 
@@ -72,7 +72,7 @@ func NewBuilder() *Builder {
        }
 }
 
-// Tailoring returns a Tailoring for the given locale.  One should 
+// Tailoring returns a Tailoring for the given locale.  One should
 // have completed all calls to Add before calling Tailoring.
 func (b *Builder) Tailoring(locale string) *Tailoring {
        t := &Tailoring{
@@ -84,7 +84,7 @@ func (b *Builder) Tailoring(locale string) *Tailoring {
        return t
 }
 
-// Add adds an entry to the collation element table, mapping 
+// Add adds an entry to the collation element table, mapping
 // a slice of runes to a sequence of collation elements.
 // A collation element is specified as list of weights: []int{primary, secondary, ...}.
 // The entries are typically obtained from a collation element table
@@ -171,7 +171,7 @@ func (t *Tailoring) SetAnchorBefore(anchor string) error {
 // See http://www.unicode.org/reports/tr10/#Tailoring_Example for details
 // on parametric tailoring and http://unicode.org/reports/tr35/#Collation_Elements
 // for full details on LDML.
-// 
+//
 // Examples: create a tailoring for Swedish, where "ä" is ordered after "z"
 // at the primary sorting level:
 //      t := b.Tailoring("se")
index ff63eb594ceca4871dde2123865048051184e908..3ad2930daa67f1b9af27186e47df3d98e39df75e 100644 (file)
@@ -132,7 +132,7 @@ func makeExpandIndex(index int) (uint32, error) {
        return expandID + uint32(index), nil
 }
 
-// Each list of collation elements corresponding to an expansion starts with 
+// Each list of collation elements corresponding to an expansion starts with
 // a header indicating the length of the sequence.
 func makeExpansionHeader(n int) (uint32, error) {
        return uint32(n), nil
@@ -199,7 +199,7 @@ func implicitPrimary(r rune) int {
        return int(r) + otherOffset
 }
 
-// convertLargeWeights converts collation elements with large 
+// convertLargeWeights converts collation elements with large
 // primaries (either double primaries or for illegal runes)
 // to our own representation.
 // A CJK character C is represented in the DUCET as
index f7cf64a7309b35a9e9cb0423fe5494ffa502b54d..868665061e70ddcae2f4909072c9f6f359982920 100644 (file)
@@ -15,7 +15,7 @@ import (
 // This file contains code for detecting contractions and generating
 // the necessary tables.
 // Any Unicode Collation Algorithm (UCA) table entry that has more than
-// one rune one the left-hand side is called a contraction.  
+// one rune one the left-hand side is called a contraction.
 // See http://www.unicode.org/reports/tr10/#Contractions for more details.
 //
 // We define the following terms:
@@ -27,7 +27,7 @@ import (
 // A rune may be both a initial and a non-initial and may be so in
 // many contractions.  An initial may typically also appear by itself.
 // In case of ambiguities, the UCA requires we match the longest
-// contraction.  
+// contraction.
 //
 // Many contraction rules share the same set of possible suffixes.
 // We store sets of suffixes in a trie that associates an index with
@@ -39,14 +39,14 @@ import (
 // is represented as a subsequence of ctEntries, where each entry corresponds to
 // a possible match of a next character in the search string.  An entry
 // also includes the length and offset to the next sequence of entries
-// to check in case of a match. 
+// to check in case of a match.
 
 const (
        final   = 0
        noIndex = 0xFF
 )
 
-// ctEntry associates to a matching byte an offset and/or next sequence of 
+// ctEntry associates to a matching byte an offset and/or next sequence of
 // bytes to check. A ctEntry c is called final if a match means that the
 // longest suffix has been found.  An entry c is final if c.n == 0.
 // A single final entry can match a range of characters to an offset.
@@ -58,7 +58,7 @@ const (
 //     {'a', 1, 1, noIndex},  // 'a' by itself does not match, so i is 0xFF.
 //     {'b', 'c', 0, 1},   // "ab" -> 1, "ac" -> 2
 // }
-// 
+//
 // The suffix strings "ab", "abc", "abd", and "abcd" can be represented as:
 // []ctEntry{
 //     {'a', 1, 1, noIndex}, // 'a' must be followed by 'b'.
@@ -72,7 +72,7 @@ type ctEntry struct {
        l uint8 // non-final: byte value to match; final: lowest match in range.
        h uint8 // non-final: relative index to next block; final: highest match in range.
        n uint8 // non-final: length of next block; final: final
-       i uint8 // result offset. Will be noIndex if more bytes are needed to complete. 
+       i uint8 // result offset. Will be noIndex if more bytes are needed to complete.
 }
 
 // contractTrieSet holds a set of contraction tries. The tries are stored
index 201c2c17a2fcd0efb9b1eeb8de1d2262f9f4b089..f5214279e2853416d42943c1b78e0a7977415b52 100644 (file)
@@ -4,7 +4,7 @@
 
 // The trie in this file is used to associate the first full character
 // in a UTF-8 string to a collation element.
-// All but the last byte in a UTF-8 byte sequence are 
+// All but the last byte in a UTF-8 byte sequence are
 // used to look up offsets in the index table to be used for the next byte.
 // The last byte is used to index into a table of collation elements.
 // This file contains the code for the generation of the trie.
index 11da56664d04bd80cb2df09cb96269b15c3f5145..4d4f6e4d140108dda8efd99a112828f6e93ad5c9 100644 (file)
@@ -10,7 +10,7 @@ import (
        "testing"
 )
 
-// We take the smallest, largest and an arbitrary value for each 
+// We take the smallest, largest and an arbitrary value for each
 // of the UTF-8 sequence lengths.
 var testRunes = []rune{
        0x01, 0x0C, 0x7F, // 1-byte sequences
index 59507e55b2cc83f38750b604d34b4aa80a2dbace..0c1d0dcb09b6cba1d9228fda06efa0b801d71071 100644 (file)
@@ -30,7 +30,7 @@ const (
 
 // AlternateHandling identifies the various ways in which variables are handled.
 // A rune with a primary weight lower than the variable top is considered a
-// variable. 
+// variable.
 // See http://www.unicode.org/reports/tr10/#Variable_Weighting for details.
 type AlternateHandling int
 
index c25799b98b231d5b13e78abf969fd445bdabaf93..430f3cca5b575d97ad97df6abce3c1d907ef31f5 100644 (file)
@@ -37,9 +37,9 @@ func (t *table) indexedTable(idx tableIndex) *table {
        return &nt
 }
 
-// appendNext appends the weights corresponding to the next rune or 
+// appendNext appends the weights corresponding to the next rune or
 // contraction in s.  If a contraction is matched to a discontinuous
-// sequence of runes, the weights for the interstitial runes are 
+// sequence of runes, the weights for the interstitial runes are
 // appended as well.  It returns a new slice that includes the appended
 // weights and the number of bytes consumed from s.
 func (t *table) appendNext(w []weights, s []byte) ([]weights, int) {
index c70a89b089cff67f5a76c4a9ed83bcf02f3efe03..f6259424d9256ce538fe1eaa8cad58b6fdefb3e0 100644 (file)
@@ -4,7 +4,7 @@
 
 // The trie in this file is used to associate the first full character
 // in an UTF-8 string to a collation element.
-// All but the last byte in a UTF-8 byte sequence are 
+// All but the last byte in a UTF-8 byte sequence are
 // used to lookup offsets in the index table to be used for the next byte.
 // The last byte is used to index into a table of collation elements.
 // For a full description, see exp/locale/collate/build/trie.go.
index 00d636c6f8a7178921488b171ac8b097d369eed2..778e85614a3cb4195a90496a9babb2ea199ddb14 100644 (file)
@@ -8,7 +8,7 @@ import (
        "testing"
 )
 
-// We take the smallest, largest and an arbitrary value for each 
+// We take the smallest, largest and an arbitrary value for each
 // of the UTF-8 sequence lengths.
 var testRunes = []rune{
        0x01, 0x0C, 0x7F, // 1-byte sequences
index a982174f54eb5cfcc729de91787494f87382dd24..c74efb56d9bccc37d4992289fb4e49faa4d61ecb 100644 (file)
@@ -76,7 +76,7 @@ func init() {
 // We do not distinguish between boundaries for NFC, NFD, etc. to avoid
 // unexpected behavior for the user.  For example, in NFD, there is a boundary
 // after 'a'.  However, 'a' might combine with modifiers, so from the application's
-// perspective it is not a good boundary. We will therefore always use the 
+// perspective it is not a good boundary. We will therefore always use the
 // boundaries for the combining variants.
 
 // BoundaryBefore returns true if this rune starts a new segment and
@@ -101,7 +101,7 @@ func (p Properties) BoundaryAfter() bool {
 //   0:    NFD_QC Yes (0) or No (1). No also means there is a decomposition.
 //   1..2: NFC_QC Yes(00), No (10), or Maybe (11)
 //   3:    Combines forward  (0 == false, 1 == true)
-// 
+//
 // When all 4 bits are zero, the character is inert, meaning it is never
 // influenced by normalization.
 type qcInfo uint8
index e37ad7b4103e30b8755c53bdf82976dc3386ec94..c0ab25e5658679082d12a441d7851454904164d1 100644 (file)
@@ -64,9 +64,9 @@ func (i *Iter) Done() bool {
 }
 
 // Next writes f(i.input[i.Pos():n]...) to buffer buf, where n is the
-// largest boundary of i.input such that the result fits in buf.  
+// largest boundary of i.input such that the result fits in buf.
 // It returns the number of bytes written to buf.
-// len(buf) should be at least MaxSegmentSize. 
+// len(buf) should be at least MaxSegmentSize.
 // Done must be false before calling Next.
 func (i *Iter) Next(buf []byte) int {
        return i.next(i, buf)
index 8ac64ba967df2695f8ab6a2e7a851b6a737e36d6..2ba67a5ab4b86db387b52a1b921cf7443345f891 100644 (file)
@@ -86,7 +86,7 @@ const (
 // Quick Check properties of runes allow us to quickly
 // determine whether a rune may occur in a normal form.
 // For a given normal form, a rune may be guaranteed to occur
-// verbatim (QC=Yes), may or may not combine with another 
+// verbatim (QC=Yes), may or may not combine with another
 // rune (QC=Maybe), or may not occur (QC=No).
 type QCResult int
 
index d3112b4041c8ce38fce12e99b7bae9e0596d4c78..6d11ec069cda59216f880add4a73cbd84e4001a4 100644 (file)
@@ -16,7 +16,7 @@ func main() {
        printTestTables()
 }
 
-// We take the smallest, largest and an arbitrary value for each 
+// We take the smallest, largest and an arbitrary value for each
 // of the UTF-8 sequence lengths.
 var testRunes = []rune{
        0x01, 0x0C, 0x7F, // 1-byte sequences
index 6d2188498b105de5561fcb4ff8dcacd66cb88f16..0dd25596123e64118a559fe540bf015292abe7d3 100644 (file)
@@ -57,7 +57,7 @@ var logger = log.New(os.Stderr, "", log.Lshortfile)
 // 1E0A;1E0A;0044 0307;1E0A;0044 0307; # (Ḋ; Ḋ; D◌̇; Ḋ; D◌̇; ) LATIN CAPITAL LETTER D WITH DOT ABOVE
 // 1E0C;1E0C;0044 0323;1E0C;0044 0323; # (Ḍ; Ḍ; D◌̣; Ḍ; D◌̣; ) LATIN CAPITAL LETTER D WITH DOT BELOW
 //
-// Each test has 5 columns (c1, c2, c3, c4, c5), where 
+// Each test has 5 columns (c1, c2, c3, c4, c5), where
 // (c1, c2, c3, c4, c5) == (c1, NFC(c1), NFD(c1), NFKC(c1), NFKD(c1))
 //
 // CONFORMANCE:
index e817f1fd85860733c383e0c55208e29f72df3fc2..fa869124827030bef2bb9f2306750151a8a28e79 100644 (file)
@@ -29,7 +29,7 @@ import (
 // required to represent the constant, independent of actual
 // type. Non-numeric constants are always normalized.
 
-// Representation of complex numbers. 
+// Representation of complex numbers.
 type complex struct {
        re, im *big.Rat
 }
@@ -313,7 +313,7 @@ func complexity(x interface{}) int {
 // matchConst returns the matching representation (same type) with the
 // smallest complexity for two constant values x and y. They must be
 // of the same "kind" (boolean, numeric, string, or nilType).
-// 
+//
 func matchConst(x, y interface{}) (_, _ interface{}) {
        if complexity(x) > complexity(y) {
                y, x = matchConst(y, x)
index f5f46f6a102bada1211129540a49aea2e8206176..fb7482e971c89fb35c1507ce06f78d03af563494 100644 (file)
@@ -559,7 +559,7 @@ func (check *checker) exprOrType(x *operand, e ast.Expr, hint Type, iota int, cy
                switch typ := x.typ.(type) {
                case *Struct:
                        if fld := lookupField(typ, e.Sel.Name); fld != nil {
-                               // TODO(gri) only variable if struct is variable 
+                               // TODO(gri) only variable if struct is variable
                                x.mode = variable
                                x.expr = e
                                x.typ = fld.Type
index f2440c2999e2b630cfb85a62ec41160acfa3f05a..46977dfe36d88656ae5ef27cad87301726bd0f4b 100644 (file)
@@ -80,7 +80,7 @@ func (x *operand) String() string {
        return buf.String()
 }
 
-// setConst sets x to the untyped constant for literal lit. 
+// setConst sets x to the untyped constant for literal lit.
 func (x *operand) setConst(tok token.Token, lit string) {
        x.mode = invalid
 
index 8a2289edee49fed6bb4bbef5d5ad1167febb60cd..ff947b68a746e958b5e3bce6932c02ff1a2e1d09 100644 (file)
@@ -31,8 +31,8 @@
                %X      base 16, with upper-case letters for A-F
                %U      Unicode format: U+1234; same as "U+%04X"
        Floating-point and complex constituents:
-               %b      decimalless scientific notation with exponent a power of two, 
-                       in the manner of strconv.FormatFloat with the 'b' format, 
+               %b      decimalless scientific notation with exponent a power of two,
+                       in the manner of strconv.FormatFloat with the 'b' format,
                        e.g. -123456p-78
                %e      scientific notation, e.g. -1234.456e+78
                %E      scientific notation, e.g. -1234.456E+78
index 13e58737f964088938d442e67537daf299389ff5..dce46d8a687dd0d8786fee1e276beb4533a94ac2 100644 (file)
@@ -231,7 +231,7 @@ func Sprintf(format string, a ...interface{}) string {
        return s
 }
 
-// Errorf formats according to a format specifier and returns the string 
+// Errorf formats according to a format specifier and returns the string
 // as a value that satisfies error.
 func Errorf(format string, a ...interface{}) error {
        return errors.New(Sprintf(format, a...))
index d69911c7d72306ea7790605c7c2746f706f905ce..62de3a2efa6be32f834d329e5501d7bd9b8f0794 100644 (file)
@@ -33,8 +33,8 @@ type ScanState interface {
        ReadRune() (r rune, size int, err error)
        // UnreadRune causes the next call to ReadRune to return the same rune.
        UnreadRune() error
-       // SkipSpace skips space in the input. Newlines are treated as space 
-       // unless the scan operation is Scanln, Fscanln or Sscanln, in which case 
+       // SkipSpace skips space in the input. Newlines are treated as space
+       // unless the scan operation is Scanln, Fscanln or Sscanln, in which case
        // a newline is treated as EOF.
        SkipSpace()
        // Token skips space in the input if skipSpace is true, then returns the
@@ -312,7 +312,7 @@ func notSpace(r rune) bool {
        return !isSpace(r)
 }
 
-// skipSpace provides Scan() methods the ability to skip space and newline characters 
+// skipSpace provides Scan() methods the ability to skip space and newline characters
 // in keeping with the current scanning mode set by format strings and Scan()/Scanln().
 func (s *ss) SkipSpace() {
        s.skipSpace(false)
index 201c948560321507814d863b8e3939dd2795033d..252d460af9a766eb5acdeb66e5f586394e1ca135 100644 (file)
@@ -99,7 +99,7 @@ func (r *commentListReader) next() {
 
 // A nodeStack keeps track of nested nodes.
 // A node lower on the stack lexically contains the nodes higher on the stack.
-// 
+//
 type nodeStack []Node
 
 // push pops all nodes that appear lexically before n
@@ -113,7 +113,7 @@ func (s *nodeStack) push(n Node) {
 // pop pops all nodes that appear lexically before pos
 // (i.e., whose lexical extent has ended before or at pos).
 // It returns the last node popped.
-// 
+//
 func (s *nodeStack) pop(pos token.Pos) (top Node) {
        i := len(*s)
        for i > 0 && (*s)[i-1].End() <= pos {
index 4a89b89096a04dece08010a39929616f699867ba..4db5814cb83a167332d9f51706b5765f5fbf7409 100644 (file)
@@ -414,7 +414,7 @@ func MergePackageFiles(pkg *Package, mode MergeMode) *File {
                                if path := imp.Path.Value; !seen[path] {
                                        // TODO: consider handling cases where:
                                        // - 2 imports exist with the same import path but
-                                       //   have different local names (one should probably 
+                                       //   have different local names (one should probably
                                        //   keep both of them)
                                        // - 2 imports exist but only one has a comment
                                        // - 2 imports exist and they both have (possibly
index 54b5d73252d1b8d417e21bf37aedb9c66e831b23..0406bfc584abf9579c2828f1fd61b08d254897db 100644 (file)
@@ -57,7 +57,7 @@ func resolve(scope *Scope, ident *Ident) bool {
 // An Importer must determine the canonical import path and
 // check the map to see if it is already present in the imports map.
 // If so, the Importer can return the map entry.  Otherwise, the
-// Importer should load the package data for the given path into 
+// Importer should load the package data for the given path into
 // a new *Object (pkg), record pkg in the imports map, and then
 // return pkg.
 type Importer func(imports map[string]*Object, path string) (pkg *Object, err error)
index 725ce5bdc2d02761e76091f55a0bcf08b796dd4c..e303b7ae23991180f8b359d6c0f3e4c196cbe224 100644 (file)
@@ -24,7 +24,7 @@ import (
 // be used as dependencies by other rules.
 //
 // DO NOT CHANGE THIS DATA TO FIX BUILDS.
-// 
+//
 var pkgDeps = map[string][]string{
        // L0 is the lowest level, core, nearly unavoidable packages.
        "errors":      {},
index df560c38f661fc7bb1047d46000bef3acb5c113f..3aaa6ac657832204668afa4ee2759b5e1653df0b 100644 (file)
 // As in the Go tree, each target operating system and
 // architecture pair has its own subdirectory of pkg
 // (pkg/GOOS_GOARCH).
-// 
+//
 // If DIR is a directory listed in the Go path, a package with
 // source in DIR/src/foo/bar can be imported as "foo/bar" and
 // has its compiled form installed to "DIR/pkg/GOOS_GOARCH/foo/bar.a"
 // (or, for gccgo, "DIR/pkg/gccgo/foo/libbar.a").
-// 
+//
 // The bin/ directory holds compiled commands.
 // Each command is named for its source directory, but only
 // using the final element, not the entire path.  That is, the
 // DIR/bin/quux, not DIR/bin/foo/quux.  The foo/ is stripped
 // so that you can add DIR/bin to your PATH to get at the
 // installed commands.
-// 
+//
 // Here's an example directory layout:
-// 
+//
 //     GOPATH=/home/user/gocode
-// 
+//
 //     /home/user/gocode/
 //         src/
 //             foo/
index 6f0edd4bade3b7fb78dcfe148d018cef9ef89ba5..51e2bf73243372e62ae75398c0498f4cee23fe79 100644 (file)
@@ -174,7 +174,7 @@ func unindent(block []string) {
 }
 
 // heading returns the trimmed line if it passes as a section heading;
-// otherwise it returns the empty string. 
+// otherwise it returns the empty string.
 func heading(line string) string {
        line = strings.TrimSpace(line)
        if len(line) == 0 {
index 79053b9a7357bb1fb75bc1367b9f561cb421651a..5c51ecef34fbc96dc3469909baa8b6a0852253a9 100644 (file)
@@ -119,7 +119,7 @@ func playExample(file *ast.File, body *ast.BlockStmt) *ast.File {
                return nil
        }
 
-       // Find unresolved identifiers 
+       // Find unresolved identifiers
        unresolved := make(map[string]bool)
        ast.Inspect(body, func(n ast.Node) bool {
                // For an expression like fmt.Println, only add "fmt" to the
@@ -243,7 +243,7 @@ func playExampleFile(file *ast.File) *ast.File {
        return &f
 }
 
-// stripOutputComment finds and removes an "Output:" commment from body 
+// stripOutputComment finds and removes an "Output:" commment from body
 // and comments, and adjusts the body block's end position.
 func stripOutputComment(body *ast.BlockStmt, comments []*ast.CommentGroup) (*ast.BlockStmt, []*ast.CommentGroup) {
        // Do nothing if no "Output:" comment found.
index 146be5d87070d485b26c3f65e92b99d23e199788..ff01285d4c31aaf6c33d38706c7dda9abbcf7be7 100644 (file)
@@ -107,7 +107,7 @@ func (r *reader) filterParamList(fields *ast.FieldList) {
 
 // filterType strips any unexported struct fields or method types from typ
 // in place. If fields (or methods) have been removed, the corresponding
-// struct or interface type has the Incomplete field set to true. 
+// struct or interface type has the Incomplete field set to true.
 //
 func (r *reader) filterType(parent *namedType, typ ast.Expr) {
        switch t := typ.(type) {
index de42d47d9fe3676d849d28ed55c506e4f43452c6..fafd8f98eaf1225ddae4bdadede8207e84c0a2a8 100644 (file)
@@ -46,7 +46,7 @@ func (mset methodSet) set(f *ast.FuncDecl) {
                // since it has documentation, assume f is simply another
                // implementation and ignore it. This does not happen if the
                // caller is using go/build.ScanDir to determine the list of
-               // files implementing a package. 
+               // files implementing a package.
                return
        }
        // function doesn't exist or has no documentation; use f
@@ -597,7 +597,7 @@ func (r *reader) computeMethodSets() {
 // types that have no declaration. Instead, these functions and methods
 // are shown at the package level. It also removes types with missing
 // declarations or which are not visible.
-// 
+//
 func (r *reader) cleanupTypes() {
        for _, t := range r.types {
                visible := r.isVisible(t.name)
index 19dd138cf404ba4a3738140e1a9e3a4a5e6e627a..ec432e3e527f18e8f71465231721bed43625d978 100644 (file)
@@ -106,7 +106,7 @@ type U4 struct {
        *u5
 }
 
-// U4.M should appear as method of U4. 
+// U4.M should appear as method of U4.
 func (*U4) M() {}
 
 type u5 struct {
index 71c1d1eaf0ea832e262eccd70d62386e3603a1a4..c2499ad77997b650e04b4dd27d7b3ee9206faa33 100644 (file)
@@ -197,7 +197,7 @@ func (c *common) Fatalf(format string, args ...interface{}) {
        c.FailNow()
 }
 
-// Parallel signals that this test is to be run in parallel with (and only with) 
+// Parallel signals that this test is to be run in parallel with (and only with)
 // other parallel tests in this CPU group.
 func (t *T) Parallel() {
        t.signal <- (*T)(nil) // Release main testing loop
@@ -215,7 +215,7 @@ func tRunner(t *T, test *InternalTest) {
        t.start = time.Now()
 
        // When this goroutine is done, either because test.F(t)
-       // returned normally or because a test failure triggered 
+       // returned normally or because a test failure triggered
        // a call to runtime.Goexit, record the duration and send
        // a signal saying that the test is done.
        defer func() {
index 4a84a97ae7957b478d4eec9004e8916bb81da213..fac513e557c0a9074198eb9f3324cb128816be7b 100644 (file)
@@ -158,7 +158,7 @@ func ParseDir(fset *token.FileSet, path string, filter func(os.FileInfo) bool, m
 
 // ParseExpr is a convenience function for obtaining the AST of an expression x.
 // The position information recorded in the AST is undefined.
-// 
+//
 func ParseExpr(x string) (ast.Expr, error) {
        // parse x within the context of a complete package for correct scopes;
        // use //line directive for correct positions in error messages and put
index 0c6a4e71f132af832f6e0f90d431115e55fa66ea..31f5ef0883c1b64e1f48983438fb3bd091dec16a 100644 (file)
@@ -3,7 +3,7 @@
 // license that can be found in the LICENSE file.
 
 // This file implements a simple printer performance benchmark:
-// go test -bench=BenchmarkPrint 
+// go test -bench=BenchmarkPrint
 
 package printer
 
index 647d1b770b66e6d4034a9935464cd4d543315276..fc45c1e7693efd56fc38784556f4c7e27d6602a3 100644 (file)
@@ -76,7 +76,7 @@ type Pos int
 // associated with it, and NoPos().IsValid() is false. NoPos is always
 // smaller than any other Pos value. The corresponding Position value
 // for NoPos is the zero value for Position.
-// 
+//
 const NoPos Pos = 0
 
 // IsValid returns true if the position is valid.
@@ -347,7 +347,7 @@ func (s *FileSet) AddFile(filename string, base, size int) *File {
 
 // Iterate calls f for the files in the file set in the order they were added
 // until f returns false.
-// 
+//
 func (s *FileSet) Iterate(f func(*File) bool) {
        for i := 0; ; i++ {
                var file *File
index 24cb7af85240ff6cdec990aaa15891c05547019f..eff0384e089e32139d266138c1ea63a5608e5dfa 100644 (file)
@@ -15,7 +15,7 @@ type writer interface {
        WriteString(string) (int, error)
 }
 
-// These replacements permit compatibility with old numeric entities that 
+// These replacements permit compatibility with old numeric entities that
 // assumed Windows-1252 encoding.
 // http://www.whatwg.org/specs/web-apps/current-work/multipage/tokenization.html#consume-a-character-reference
 var replacementTable = [...]rune{
@@ -51,7 +51,7 @@ var replacementTable = [...]rune{
        '\u009D',
        '\u017E',
        '\u0178', // Last entry is 0x9F.
-       // 0x00->'\uFFFD' is handled programmatically. 
+       // 0x00->'\uFFFD' is handled programmatically.
        // 0x0D->'\u000D' is a no-op.
 }
 
index 42ea7930f07f93e83b122a8596f3585dbf5ddcd3..9d1f74f6f01772ae17a63ed0e6b724746a845cce 100644 (file)
@@ -30,7 +30,7 @@ type (
        HTMLAttr string
 
        // JS encapsulates a known safe EcmaScript5 Expression, for example,
-       // `(x + y * z())`. 
+       // `(x + y * z())`.
        // Template authors are responsible for ensuring that typed expressions
        // do not break the intended precedence and that there is no
        // statement/expression ambiguity as when passing an expression like
index dcac748967691be048c851ea36441fc991cfdd77..46e49ccf83021a0b197f9430fa2cadc02aaee245 100644 (file)
@@ -102,7 +102,7 @@ const (
        //
        //   {{define "main"}} <script>{{template "helper"}}</script> {{end}}
        //   {{define "helper"}} document.write(' <div title=" ') {{end}}
-       // 
+       //
        //   "helper" does not produce a valid document fragment, so should
        //   not be Executed directly.
        ErrEndContext
@@ -161,7 +161,7 @@ const (
        //   In the example, there is missing a quote, so it is not clear
        //   whether {{.}} is meant to be inside a JS string or in a JS value
        //   context.  The second iteration would produce something like
-       // 
+       //
        //     <script>var x = ['firstValue,'secondValue]</script>
        ErrRangeLoopReentry
 
index 36c88e23e6e4e1530c9dfc4474f12659e76ce68a..f25f1074c7beb5f8cca249a4c9688b5be5f342fc 100644 (file)
@@ -106,7 +106,7 @@ var htmlNospaceReplacementTable = []string{
        '<':  "&lt;",
        '=':  "&#61;",
        '>':  "&gt;",
-       // A parse error in the attribute value (unquoted) and 
+       // A parse error in the attribute value (unquoted) and
        // before attribute value states.
        // Treated as a quoting character by IE.
        '`': "&#96;",
@@ -128,7 +128,7 @@ var htmlNospaceNormReplacementTable = []string{
        '<':  "&lt;",
        '=':  "&#61;",
        '>':  "&gt;",
-       // A parse error in the attribute value (unquoted) and 
+       // A parse error in the attribute value (unquoted) and
        // before attribute value states.
        // Treated as a quoting character by IE.
        '`': "&#96;",
@@ -143,7 +143,7 @@ func htmlReplacer(s string, replacementTable []string, badRunes bool) string {
                        if repl := replacementTable[r]; len(repl) != 0 {
                                b.WriteString(s[written:i])
                                b.WriteString(repl)
-                               // Valid as long as replacementTable doesn't 
+                               // Valid as long as replacementTable doesn't
                                // include anything above 0x7f.
                                written = i + utf8.RuneLen(r)
                        }
index caa23ae3d2e60c16a27c0feb5aaa3cdac6882231..95c0d58ee9798568819a4d92c297b3d9774bd1f6 100644 (file)
@@ -412,7 +412,7 @@ func (x *Int) Format(s fmt.State, ch rune) {
        if precisionSet {
                switch {
                case len(digits) < precision:
-                       zeroes = precision - len(digits) // count of zero padding 
+                       zeroes = precision - len(digits) // count of zero padding
                case digits == "0" && precision == 0:
                        return // print nothing if zero value (x == 0) and zero precision ("." or ".0")
                }
index 17985c248e220955f3f33d318cf97e83d4df6a97..13a623a70327b0fd771387baa79dfc7678721697 100644 (file)
@@ -421,17 +421,17 @@ func (z nat) mul(x, y nat) nat {
        z[2*k:].clear() // upper portion of z is garbage (and 2*k <= m+n since k <= n <= m)
 
        // If xh != 0 or yh != 0, add the missing terms to z. For
-       // 
-       //   xh = xi*b^i + ... + x2*b^2 + x1*b (0 <= xi < b) 
-       //   yh =                         y1*b (0 <= y1 < b) 
-       // 
-       // the missing terms are 
-       // 
-       //   x0*y1*b and xi*y0*b^i, xi*y1*b^(i+1) for i > 0 
-       // 
-       // since all the yi for i > 1 are 0 by choice of k: If any of them 
-       // were > 0, then yh >= b^2 and thus y >= b^2. Then k' = k*2 would 
-       // be a larger valid threshold contradicting the assumption about k. 
+       //
+       //   xh = xi*b^i + ... + x2*b^2 + x1*b (0 <= xi < b)
+       //   yh =                         y1*b (0 <= y1 < b)
+       //
+       // the missing terms are
+       //
+       //   x0*y1*b and xi*y0*b^i, xi*y1*b^(i+1) for i > 0
+       //
+       // since all the yi for i > 1 are 0 by choice of k: If any of them
+       // were > 0, then yh >= b^2 and thus y >= b^2. Then k' = k*2 would
+       // be a larger valid threshold contradicting the assumption about k.
        //
        if k < n || m != n {
                var t nat
@@ -828,16 +828,16 @@ func (x nat) string(charset string) string {
 // by nat/nat division using tabulated divisors. Otherwise, it is converted iteratively using
 // repeated nat/Word divison.
 //
-// The iterative method processes n Words by n divW() calls, each of which visits every Word in the 
-// incrementally shortened q for a total of n + (n-1) + (n-2) ... + 2 + 1, or n(n+1)/2 divW()'s. 
-// Recursive conversion divides q by its approximate square root, yielding two parts, each half 
+// The iterative method processes n Words by n divW() calls, each of which visits every Word in the
+// incrementally shortened q for a total of n + (n-1) + (n-2) ... + 2 + 1, or n(n+1)/2 divW()'s.
+// Recursive conversion divides q by its approximate square root, yielding two parts, each half
 // the size of q. Using the iterative method on both halves means 2 * (n/2)(n/2 + 1)/2 divW()'s
 // plus the expensive long div(). Asymptotically, the ratio is favorable at 1/2 the divW()'s, and
-// is made better by splitting the subblocks recursively. Best is to split blocks until one more 
-// split would take longer (because of the nat/nat div()) than the twice as many divW()'s of the 
-// iterative approach. This threshold is represented by leafSize. Benchmarking of leafSize in the 
-// range 2..64 shows that values of 8 and 16 work well, with a 4x speedup at medium lengths and 
-// ~30x for 20000 digits. Use nat_test.go's BenchmarkLeafSize tests to optimize leafSize for 
+// is made better by splitting the subblocks recursively. Best is to split blocks until one more
+// split would take longer (because of the nat/nat div()) than the twice as many divW()'s of the
+// iterative approach. This threshold is represented by leafSize. Benchmarking of leafSize in the
+// range 2..64 shows that values of 8 and 16 work well, with a 4x speedup at medium lengths and
+// ~30x for 20000 digits. Use nat_test.go's BenchmarkLeafSize tests to optimize leafSize for
 // specific hardware.
 //
 func (q nat) convertWords(s []byte, charset string, b Word, ndigits int, bb Word, table []divisor) {
index 8dfbf092b44145354d02e9c9f948e500394c22eb..6244eeefc91af70ae9292d34e4af305f19e50227 100644 (file)
@@ -166,7 +166,7 @@ func TestMulRangeN(t *testing.T) {
        }
 }
 
-// allocBytes returns the number of bytes allocated by invoking f. 
+// allocBytes returns the number of bytes allocated by invoking f.
 func allocBytes(f func()) uint64 {
        var stats runtime.MemStats
        runtime.ReadMemStats(&stats)
@@ -546,7 +546,7 @@ func BenchmarkLeafSize13(b *testing.B) { LeafSizeHelper(b, 10, 13) }
 func BenchmarkLeafSize14(b *testing.B) { LeafSizeHelper(b, 10, 14) }
 func BenchmarkLeafSize15(b *testing.B) { LeafSizeHelper(b, 10, 15) }
 func BenchmarkLeafSize16(b *testing.B) { LeafSizeHelper(b, 10, 16) }
-func BenchmarkLeafSize32(b *testing.B) { LeafSizeHelper(b, 10, 32) } // try some large lengths 
+func BenchmarkLeafSize32(b *testing.B) { LeafSizeHelper(b, 10, 32) } // try some large lengths
 func BenchmarkLeafSize64(b *testing.B) { LeafSizeHelper(b, 10, 64) }
 
 func LeafSizeHelper(b *testing.B, base Word, size int) {
index 09ff5e739a3364cc0c47b29e950a8be2ae1a6323..869c3cb966e19918f09dd89cc4b26ce55f83747b 100644 (file)
@@ -55,7 +55,7 @@ func TestDialTimeout(t *testing.T) {
                // on our 386 builder, this Dial succeeds, connecting
                // to an IIS web server somewhere.  The data center
                // or VM or firewall must be stealing the TCP connection.
-               // 
+               //
                // IANA Service Name and Transport Protocol Port Number Registry
                // <http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xml>
                go func() {
index a7089d04a598e28a4bf6660237cc70330f3ae224..76b192645aafc2442f34e7d7b4044fa7d54f34ed 100644 (file)
@@ -183,7 +183,7 @@ func (s byPriorityWeight) Less(i, j int) bool {
 }
 
 // shuffleByWeight shuffles SRV records by weight using the algorithm
-// described in RFC 2782.  
+// described in RFC 2782.
 func (addrs byPriorityWeight) shuffleByWeight() {
        sum := 0
        for _, addr := range addrs {
index 1a1c2edfea2af772f31ad2155e4baf44be8e655f..eefe84fa772959d3df31e81035a1220f827599aa 100644 (file)
@@ -17,7 +17,7 @@ func ExampleListener() {
                log.Fatal(err)
        }
        for {
-               // Wait for a connection. 
+               // Wait for a connection.
                conn, err := l.Accept()
                if err != nil {
                        log.Fatal(err)
index 50befac177a05f46faf50ea0547b5af65c6eb306..d1eb573d0040f0cae2078dcba9e42f1ed41123b9 100644 (file)
@@ -10,7 +10,7 @@ import (
        "testing"
 )
 
-// Issue 3590. netFd.AddFD should return an error 
+// Issue 3590. netFd.AddFD should return an error
 // from the underlying pollster rather than panicing.
 func TestAddFDReturnsError(t *testing.T) {
        l, err := Listen("tcp", "127.0.0.1:0")
index 60a478fd8faf7b65c18cd8a67cd019443f53bf8b..91d7bb6575ae30785ad69003caab8306066d0f0f 100644 (file)
@@ -22,7 +22,7 @@ const maxLineLength = 4096 // assumed <= bufio.defaultBufSize
 var ErrLineTooLong = errors.New("header line too long")
 
 // newChunkedReader returns a new chunkedReader that translates the data read from r
-// out of HTTP "chunked" format before returning it. 
+// out of HTTP "chunked" format before returning it.
 // The chunkedReader returns io.EOF when the final 0-length chunk is read.
 //
 // newChunkedReader is not needed by normal applications. The http package
index 43f519d1fbaa22a4252a59cd9b81061458005b48..155b09223e4cd32786fef2f68328232422a98a92 100644 (file)
@@ -26,7 +26,7 @@ type Cookie struct {
        Expires    time.Time
        RawExpires string
 
-       // MaxAge=0 means no 'Max-Age' attribute specified. 
+       // MaxAge=0 means no 'Max-Age' attribute specified.
        // MaxAge<0 means delete cookie now, equivalently 'Max-Age: 0'
        // MaxAge>0 means Max-Age attribute present and given in seconds
        MaxAge   int
index 1e9186a0581443dbca3080209a16ebfce177c4a3..f84f73936c75370c1c8989e86d6bfb716eddf0c7 100644 (file)
@@ -217,7 +217,7 @@ var readCookiesTests = []struct {
 
 func TestReadCookies(t *testing.T) {
        for i, tt := range readCookiesTests {
-               for n := 0; n < 2; n++ { // to verify readCookies doesn't mutate its input                                                  
+               for n := 0; n < 2; n++ { // to verify readCookies doesn't mutate its input
                        c := readCookies(tt.Header, tt.Filter)
                        if !reflect.DeepEqual(c, tt.Cookies) {
                                t.Errorf("#%d readCookies:\nhave: %s\nwant: %s\n", i, toJSON(c), toJSON(tt.Cookies))
index 29eaf3475f12cc4b577dfc7da2ecc7e172de6951..91a7eb6b1adaa327f5b7627a690232bcc41c7eb7 100644 (file)
@@ -24,7 +24,7 @@ const maxLineLength = 4096 // assumed <= bufio.defaultBufSize
 var ErrLineTooLong = errors.New("header line too long")
 
 // NewChunkedReader returns a new chunkedReader that translates the data read from r
-// out of HTTP "chunked" format before returning it. 
+// out of HTTP "chunked" format before returning it.
 // The chunkedReader returns io.EOF when the final 0-length chunk is read.
 //
 // NewChunkedReader is not needed by normal applications. The http package
index 5ecffaface93de6a145a1f92d1101579ebcaf39b..86db976b838f583c1d2c56b399a43f11cd190519 100644 (file)
@@ -25,7 +25,7 @@ var UseProxyTests = []struct {
        {"[::2]", true}, // not a loopback address
 
        {"barbaz.net", false},     // match as .barbaz.net
-       {"foobar.com", false},     // have a port but match 
+       {"foobar.com", false},     // have a port but match
        {"foofoobar.com", true},   // not match as a part of foobar.com
        {"baz.com", true},         // not match as a part of barbaz.com
        {"localhost.net", true},   // not match as suffix of address
index db7419b26fe3ffd5a169aa7f1fd229df481250e2..c0b738c6e6569828f666496b0cff5e2db4baec3b 100644 (file)
@@ -161,7 +161,7 @@ func TestSetBasicAuth(t *testing.T) {
 }
 
 func TestMultipartRequest(t *testing.T) {
-       // Test that we can read the values and files of a 
+       // Test that we can read the values and files of a
        // multipart request with FormValue and FormFile,
        // and that ParseMultipartForm can be called multiple times.
        req := newTestMultipartRequest(t)
index a286edc72d464728c2d24a269570016bacb0c7dd..355efb2cac9f3b5d9beb59eb3f30718b127c1ec2 100644 (file)
@@ -314,7 +314,7 @@ func TestServerTimeouts(t *testing.T) {
        l.Close()
 }
 
-// TestIdentityResponse verifies that a handler can unset 
+// TestIdentityResponse verifies that a handler can unset
 func TestIdentityResponse(t *testing.T) {
        handler := HandlerFunc(func(rw ResponseWriter, req *Request) {
                rw.Header().Set("Content-Length", "3")
index 22e1bb4928fe2fecf202140639c0597304b9a6ea..e8d7b527f588a5c35d9b5b90d7dc0125adf3ac4f 100644 (file)
@@ -3,7 +3,7 @@
 // license that can be found in the LICENSE file.
 
 // HTTP client implementation. See RFC 2616.
-// 
+//
 // This is the low-level Transport implementation of RoundTripper.
 // The high-level interface is in client.go.
 
@@ -707,7 +707,7 @@ func (pc *persistConn) roundTrip(req *transportRequest) (resp *Response, err err
        // requested it.
        requestedGzip := false
        if !pc.t.DisableCompression && req.Header.Get("Accept-Encoding") == "" {
-               // Request gzip only, not deflate. Deflate is ambiguous and 
+               // Request gzip only, not deflate. Deflate is ambiguous and
                // not as universally supported anyway.
                // See: http://www.gzip.org/zlib/zlib_faq.html#faq38
                requestedGzip = true
index 7d3d0bb9b8761331a4bc6bab321508a8fbcf2b66..ee3cc4d34d53a66f25fde463e4f482fe277ec485 100644 (file)
@@ -228,7 +228,7 @@ func DialHTTP(network, address string) (*Client, error) {
        return DialHTTPPath(network, address, DefaultRPCPath)
 }
 
-// DialHTTPPath connects to an HTTP RPC server 
+// DialHTTPPath connects to an HTTP RPC server
 // at the specified network address and path.
 func DialHTTPPath(network, address, path string) (*Client, error) {
        var err error
index e5282202c3d5e2cf78c55f115a016ee0b43cbbf8..ee1df823ebfad4b54561551ccaea9a7dae7429f0 100644 (file)
@@ -227,7 +227,7 @@ func (server *Server) Register(rcvr interface{}) error {
        return server.register(rcvr, "", false)
 }
 
-// RegisterName is like Register but uses the provided name for the type 
+// RegisterName is like Register but uses the provided name for the type
 // instead of the receiver's concrete type.
 func (server *Server) RegisterName(name string, rcvr interface{}) error {
        return server.register(rcvr, name, true)
@@ -569,7 +569,7 @@ func (server *Server) Accept(lis net.Listener) {
 // Register publishes the receiver's methods in the DefaultServer.
 func Register(rcvr interface{}) error { return DefaultServer.Register(rcvr) }
 
-// RegisterName is like Register but uses the provided name for the type 
+// RegisterName is like Register but uses the provided name for the type
 // instead of the receiver's concrete type.
 func RegisterName(name string, rcvr interface{}) error {
        return DefaultServer.RegisterName(name, rcvr)
@@ -612,7 +612,7 @@ func ServeRequest(codec ServerCodec) error {
 }
 
 // Accept accepts connections on the listener and serves requests
-// to DefaultServer for each incoming connection.  
+// to DefaultServer for each incoming connection.
 // Accept blocks; the caller typically invokes it in a go statement.
 func Accept(lis net.Listener) { DefaultServer.Accept(lis) }
 
index 5b39e25acbf59f018ac2f2a588db1f798afac81c..e1d4b0d47aa7ebaf982039c18e836b546c378b04 100644 (file)
@@ -171,9 +171,9 @@ var dualStackListenerTests = []struct {
        // Test cases and expected results for the attemping 2nd listen on the same port
        // 1st listen                2nd listen                 darwin  freebsd  linux  openbsd
        // ------------------------------------------------------------------------------------
-       // "tcp"  ""                 "tcp"  ""                    -        -       -       - 
-       // "tcp"  ""                 "tcp"  "0.0.0.0"             -        -       -       - 
-       // "tcp"  "0.0.0.0"          "tcp"  ""                    -        -       -       - 
+       // "tcp"  ""                 "tcp"  ""                    -        -       -       -
+       // "tcp"  ""                 "tcp"  "0.0.0.0"             -        -       -       -
+       // "tcp"  "0.0.0.0"          "tcp"  ""                    -        -       -       -
        // ------------------------------------------------------------------------------------
        // "tcp"  ""                 "tcp"  "[::]"                -        -       -       ok
        // "tcp"  "[::]"             "tcp"  ""                    -        -       -       ok
index d94c4b16b21e3c80555f0763b3eb02a9dc25c378..a65b2607996b79ec1c227a24cda173b15ed41a8c 100644 (file)
@@ -163,7 +163,7 @@ func (client *expClient) run() {
                                // all messages <=N have been seen by the recipient.  We check anyway.
                                expLog("sequence out of order:", client.ackNum, hdr.SeqNum)
                        }
-                       if client.ackNum < hdr.SeqNum { // If there has been an error, don't back up the count. 
+                       if client.ackNum < hdr.SeqNum { // If there has been an error, don't back up the count.
                                client.ackNum = hdr.SeqNum
                        }
                        client.mu.Unlock()
index ebce6d83d82c2cebdc1f98375e3e8132c2eefb17..060c0b2e8f870c4d654b26025c708f06091ede95 100644 (file)
@@ -110,7 +110,7 @@ var nullDir = dir{
 }
 
 // Null assigns members of d with special "don't care" values indicating
-// they should not be written by syscall.Wstat. 
+// they should not be written by syscall.Wstat.
 func (d *dir) Null() {
        *d = nullDir
 }
@@ -118,7 +118,7 @@ func (d *dir) Null() {
 // pdir appends a 9P Stat message based on the contents of Dir d to a byte slice b.
 func pdir(b []byte, d *dir) []byte {
        n := len(b)
-       b = pbit16(b, 0) // length, filled in later     
+       b = pbit16(b, 0) // length, filled in later
        b = pbit16(b, d.Type)
        b = pbit32(b, d.Dev)
        b = pqid(b, d.Qid)
index b88e49400de9a3356a1c8df853add3197d758c97..a7977ff19145bf7da3e468fecc4013c152dde836 100644 (file)
@@ -43,7 +43,7 @@ func NewSyscallError(syscall string, err error) error {
        return &SyscallError{syscall, err}
 }
 
-// IsExist returns whether the error is known to report that a file or directory 
+// IsExist returns whether the error is known to report that a file or directory
 // already exists. It is satisfied by ErrExist as well as some syscall errors.
 func IsExist(err error) bool {
        return isExist(err)
index c4907cd7d7b519846e82f75a0d1f29b80e527dc8..8368491b0fef54b46bca40baea1f770736fd912a 100644 (file)
@@ -37,7 +37,7 @@ type Cmd struct {
 
        // Args holds command line arguments, including the command as Args[0].
        // If the Args field is empty or nil, Run uses {Path}.
-       // 
+       //
        // In typical use, both Path and Args are set by calling Command.
        Args []string
 
index 5b1658a7152eced960ab6d4ac5063e55b23e744e..32cac6d89a4d3e22d88cb47187f868756b23140d 100644 (file)
@@ -9,7 +9,7 @@
 // if a call that takes a file name fails, such as Open or Stat, the error
 // will include the failing file name when printed and will be of type
 // *PathError, which may be unpacked for more information.
-// 
+//
 // The os interface is intended to be uniform across all operating systems.
 // Features not generally available appear in the system-specific package syscall.
 //
index 1bc9dd0524a1160e1c29bdd2f66943c6dceead95..b3dd188343320fb18b3277db824f50a84bbf6ece 100644 (file)
@@ -38,7 +38,7 @@ func fileInfoFromStat(d *dir) FileInfo {
        return fs
 }
 
-// arg is an open *File or a path string. 
+// arg is an open *File or a path string.
 func dirstat(arg interface{}) (d *dir, err error) {
        var name string
 
index 2c53c953634b3cf1d3efd6b4d968afba11d9d1f2..1102e5bb1bc259b891f451f4a83ccee744b12500 100644 (file)
@@ -29,7 +29,7 @@ static int mygetpwuid_r(int uid, struct passwd *pwd,
 */
 import "C"
 
-// Current returns the current user. 
+// Current returns the current user.
 func Current() (*User, error) {
        return lookup(syscall.Getuid(), "", false)
 }
index 730c2dfb519368021e3c8f0adf51880e2ee42759..bbd738d8c81293421b6c58e748661cabde54c1f5 100644 (file)
@@ -329,7 +329,7 @@ var SkipDir = errors.New("skip this directory")
 // prefix; that is, if Walk is called with "dir", which is a directory
 // containing the file "a", the walk function will be called with argument
 // "dir/a". The info argument is the os.FileInfo for the named path.
-// 
+//
 // If there was a problem walking to the file or directory named by path, the
 // incoming error will describe the problem and the function can decide how
 // to handle that error (and Walk will not descend into that directory). If
@@ -457,7 +457,7 @@ func Dir(path string) string {
        return vol + dir
 }
 
-// VolumeName returns leading volume name.  
+// VolumeName returns leading volume name.
 // Given "C:\foo\bar" it returns "C:" under windows.
 // Given "\\host\share\foo" it returns "\\host\share".
 // On other platforms it returns "".
index 4ebe055305d599a65dfc53f5dbe37ecf17f7c7df..d3646c65c9542ad4c81f73a5a371d413b09cff3b 100644 (file)
@@ -1332,7 +1332,7 @@ func TestSelect(t *testing.T) {
 
 // selectWatch and the selectWatcher are a watchdog mechanism for running Select.
 // If the selectWatcher notices that the select has been blocked for >1 second, it prints
-// an error describing the select and panics the entire test binary. 
+// an error describing the select and panics the entire test binary.
 var selectWatch struct {
        sync.Mutex
        once sync.Once
index 8135a4cd148ef61764ceef31e5f524e82a53ee7e..83b6507f1a1da268beaae5baf800be0f93ecce22 100644 (file)
@@ -85,7 +85,7 @@ func TestImplicitMapConversion(t *testing.T) {
                }
        }
        {
-               // convert channel direction    
+               // convert channel direction
                m := make(map[<-chan int]chan int)
                mv := ValueOf(m)
                c1 := make(chan int)
index 493a6721d8fc488b77700938a55c7e6ed6f7f7e7..5e3856b1c37b471dff0ac20db5cd2c450dad906b 100644 (file)
@@ -364,7 +364,7 @@ type Method struct {
        // PkgPath is the package path that qualifies a lower case (unexported)
        // method name.  It is empty for upper case (exported) method names.
        // The combination of PkgPath and Name uniquely identifies a method
-       // in a method set. 
+       // in a method set.
        // See http://golang.org/ref/spec#Uniqueness_of_identifiers
        Name    string
        PkgPath string
index 2d217a5180e1641a39a2721aa0b1bdefa4ef9fa7..b629b58cc11272e2df2d9fa480826f0b955a8892 100644 (file)
@@ -346,7 +346,7 @@ func (v Value) Call(in []Value) []Value {
 }
 
 // CallSlice calls the variadic function v with the input arguments in,
-// assigning the slice in[len(in)-1] to v's final variadic argument.  
+// assigning the slice in[len(in)-1] to v's final variadic argument.
 // For example, if len(in) == 3, v.Call(in) represents the Go call v(in[0], in[1], in[2]...).
 // Call panics if v's Kind is not Func or if v is not variadic.
 // It returns the output results as Values.
@@ -924,7 +924,7 @@ func valueInterface(v Value, safe bool) interface{} {
 
        if safe && v.flag&flagRO != 0 {
                // Do not allow access to unexported values via Interface,
-               // because they might be pointers that should not be 
+               // because they might be pointers that should not be
                // writable or methods or function that should not be callable.
                panic("reflect.Value.Interface: cannot return value obtained from unexported field or method")
        }
@@ -1809,7 +1809,7 @@ func Select(cases []SelectCase) (chosen int, recv Value, recvOK bool) {
                default:
                        panic("reflect.Select: invalid Dir")
 
-               case SelectDefault: // default  
+               case SelectDefault: // default
                        if haveDefault {
                                panic("reflect.Select: multiple default cases")
                        }
index e668574a514389377c9baf2e95cc204799b91c46..0741957a41d9bfe980eaf512264a510de2034f06 100644 (file)
@@ -405,14 +405,14 @@ Reading:
                //   implementation. If the first character is not [BEASKLP] then the
                //   specification is a global control line. One or more of [BEASKLP] may be
                //   specified; the test will be repeated for each mode.
-               // 
+               //
                //     B        basic                   BRE     (grep, ed, sed)
                //     E        REG_EXTENDED            ERE     (egrep)
                //     A        REG_AUGMENTED           ARE     (egrep with negation)
                //     S        REG_SHELL               SRE     (sh glob)
                //     K        REG_SHELL|REG_AUGMENTED KRE     (ksh glob)
                //     L        REG_LITERAL             LRE     (fgrep)
-               // 
+               //
                //     a        REG_LEFT|REG_RIGHT      implicit ^...$
                //     b        REG_NOTBOL              lhs does not match ^
                //     c        REG_COMMENT             ignore space and #...\n
@@ -442,23 +442,23 @@ Reading:
                //     $                                expand C \c escapes in fields 2 and 3
                //     /                                field 2 is a regsubcomp() expression
                //     =                                field 3 is a regdecomp() expression
-               // 
+               //
                //   Field 1 control lines:
-               // 
+               //
                //     C                set LC_COLLATE and LC_CTYPE to locale in field 2
-               // 
+               //
                //     ?test ...        output field 5 if passed and != EXPECTED, silent otherwise
                //     &test ...        output field 5 if current and previous passed
                //     |test ...        output field 5 if current passed and previous failed
                //     ; ...    output field 2 if previous failed
                //     {test ...        skip if failed until }
                //     }                end of skip
-               // 
+               //
                //     : comment                comment copied as output NOTE
                //     :comment:test    :comment: ignored
                //     N[OTE] comment   comment copied as output NOTE
                //     T[EST] comment   comment
-               // 
+               //
                //     number           use number for nmatch (20 by default)
                flag := field[0]
                switch flag[0] {
@@ -501,7 +501,7 @@ Reading:
 
                //   Field 2: the regular expression pattern; SAME uses the pattern from
                //     the previous specification.
-               // 
+               //
                if field[1] == "SAME" {
                        field[1] = lastRegexp
                }
index e4896a1c0503ed7ea9e30f53c7dc0ccb01c0d21a..2a1ae56bd829b1d5dd65b82b60b6f73cb02cc41c 100644 (file)
@@ -720,7 +720,7 @@ func (re *Regexp) FindSubmatch(b []byte) [][]byte {
 // append, Expand replaces variables in the template with corresponding
 // matches drawn from src.  The match slice should have been returned by
 // FindSubmatchIndex.
-// 
+//
 // In the template, a variable is denoted by a substring of the form
 // $name or ${name}, where name is a non-empty sequence of letters,
 // digits, and underscores.  A purely numeric name like $1 refers to
@@ -728,10 +728,10 @@ func (re *Regexp) FindSubmatch(b []byte) [][]byte {
 // capturing parentheses named with the (?P<name>...) syntax.  A
 // reference to an out of range or unmatched index or a name that is not
 // present in the regular expression is replaced with an empty slice.
-// 
+//
 // In the $name form, name is taken to be as long as possible: $1x is
 // equivalent to ${1x}, not ${1}x, and, $10 is equivalent to ${10}, not ${1}0.
-// 
+//
 // To insert a literal $ in the output, use $$ in the template.
 func (re *Regexp) Expand(dst []byte, template []byte, src []byte, match []int) []byte {
        return re.expand(dst, string(template), src, "", match)
index 41955bfc29a2af3d104abe9ea26e4fce6fa9c831..95f6f15698d459139fdc2ec45a8b92a669230a67 100644 (file)
@@ -10,10 +10,10 @@ import "unicode"
 // Because the pointers haven't been filled in yet, we can reuse their storage
 // to hold the list.  It's kind of sleazy, but works well in practice.
 // See http://swtch.com/~rsc/regexp/regexp1.html for inspiration.
-// 
+//
 // These aren't really pointers: they're integers, so we can reinterpret them
 // this way without using package unsafe.  A value l denotes
-// p.inst[l>>1].Out (l&1==0) or .Arg (l&1==1). 
+// p.inst[l>>1].Out (l&1==0) or .Arg (l&1==1).
 // l == 0 denotes the empty list, okay because we start every program
 // with a fail instruction, so we'll never want to point at its output link.
 type patchList uint32
index 55ea465d80d910610531c80db94a4570fc0dab63..999bc995b647d96da9f9819a3ccf1b97a938d8bb 100644 (file)
@@ -466,7 +466,7 @@ func (p *parser) factor(sub []*Regexp, flags Flags) []*Regexp {
                        // Construct factored form: prefix(suffix1|suffix2|...)
                        prefix := first
                        for j := start; j < i; j++ {
-                               reuse := j != start // prefix came from sub[start] 
+                               reuse := j != start // prefix came from sub[start]
                                sub[j] = p.removeLeadingRegexp(sub[j], reuse)
                        }
                        suffix := p.collapse(sub[start:i], OpAlternate) // recurse
index c943b7a2d2cfef705fd9b8d75d4f645f9499321f..79edc5a6043b46651a75115394f6b965fde7ec56 100644 (file)
@@ -6,7 +6,7 @@ package runtime
 
 import "unsafe"
 
-// Note: the MemStats struct should be kept in sync with 
+// Note: the MemStats struct should be kept in sync with
 // struct MStats in malloc.h
 
 // A MemStats records statistics about the memory allocator.
index 5f995762c845ee9fb1a31268d0fd369e6afcbdac..a3d7256072a0333ae9ce28b60b2e4a2af3d489d9 100644 (file)
@@ -12,10 +12,10 @@ import (
        "unsafe"
 )
 
-// RaceDisable disables handling of race events in the current goroutine. 
+// RaceDisable disables handling of race events in the current goroutine.
 func RaceDisable()
 
-// RaceEnable re-enables handling of race events in the current goroutine. 
+// RaceEnable re-enables handling of race events in the current goroutine.
 func RaceEnable()
 
 func RaceAcquire(addr unsafe.Pointer)
index 01c6b6e2f2e5341860ce9eda61442a148b2787f7..8b75e4d121e00302a117d282f669ea8a9d491b46 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Test stack split logic by calling functions of every frame size 
+// Test stack split logic by calling functions of every frame size
 // from near 0 up to and beyond the default segment size (4k).
 // Each of those functions reports its SP + stack limit, and then
 // the test (the caller) checks that those make sense.  By not
index f672f1a0de3c787b901109972831710e9fa816d7..cd28419adfa05d86ee74dcd54fffbf0b350fd411 100644 (file)
@@ -6,7 +6,7 @@ package runtime_test
 
 import "testing"
 
-// arm soft division benchmarks adapted from 
+// arm soft division benchmarks adapted from
 // http://ridiculousfish.com/files/division_benchmarks.tar.gz
 
 const numeratorsSize = 1 << 21
index 2dca6bf1331ccd4136a10338653f816ce7e6b875..66e6636446492e90555b1e5acce03acdebe03b29 100644 (file)
@@ -7,7 +7,7 @@
 package sort
 
 // Search uses binary search to find and return the smallest index i
-// in [0, n) at which f(i) is true, assuming that on the range [0, n), 
+// in [0, n) at which f(i) is true, assuming that on the range [0, n),
 // f(i) == true implies f(i+1) == true.  That is, Search requires that
 // f is false for some (possibly empty) prefix of the input range [0, n)
 // and then true for the (possibly empty) remainder; Search returns
@@ -82,14 +82,14 @@ func SearchInts(a []int, x int) int {
 
 // SearchFloat64s searches for x in a sorted slice of float64s and returns the index
 // as specified by Search. The slice must be sorted in ascending order.
-// 
+//
 func SearchFloat64s(a []float64, x float64) int {
        return Search(len(a), func(i int) bool { return a[i] >= x })
 }
 
 // SearchStrings searches for x in a sorted slice of strings and returns the index
 // as specified by Search. The slice must be sorted in ascending order.
-// 
+//
 func SearchStrings(a []string, x string) int {
        return Search(len(a), func(i int) bool { return a[i] >= x })
 }
index 6c3520194017e8aa869cb3c474a6e0dea1e99e5b..438017e5f66af8851b906287aa28ff83f76eb73e 100644 (file)
@@ -394,7 +394,7 @@ func (f *extFloat) FixedDecimal(d *decimalSlice, n int) bool {
                panic("strconv: internal error: extFloat.FixedDecimal called with n == 0")
        }
        // Multiply by an appropriate power of ten to have a reasonable
-       // number to process. 
+       // number to process.
        f.Normalize()
        exp10, _ := f.frexp10()
 
@@ -647,7 +647,7 @@ func (f *extFloat) ShortestDecimal(d *decimalSlice, lower, upper *extFloat) bool
        return false
 }
 
-// adjustLastDigit modifies d = x-currentDiff*ε, to get closest to 
+// adjustLastDigit modifies d = x-currentDiff*ε, to get closest to
 // d = x-targetDiff*ε, without becoming smaller than x-maxDiff*ε.
 // It assumes that a decimal digit is worth ulpDecimal*ε, and that
 // all data is known with a error estimate of ulpBinary*ε.
index c271e48ab249bd463259f313aec0f538809433fa..7be41a8dcadc128dfa0fd4d9269910329e8bc1f3 100644 (file)
@@ -995,7 +995,7 @@ func TestEqualFold(t *testing.T) {
 
 var makeFieldsInput = func() string {
        x := make([]byte, 1<<20)
-       // Input is ~10% space, ~10% 2-byte UTF-8, rest ASCII non-space. 
+       // Input is ~10% space, ~10% 2-byte UTF-8, rest ASCII non-space.
        for i := range x {
                switch rand.Intn(10) {
                case 0:
index 45da9909e60b45385301faed326d9637fa1acf82..1425e100bea9bbeea6025de67f2bc6ceef79794c 100644 (file)
@@ -461,7 +461,7 @@ func forkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err error)
                }
        }
 
-       // Allocate child status pipe close on exec.    
+       // Allocate child status pipe close on exec.
        e = cexecPipe(p[:])
 
        if e != nil {
index 4379731f79064938b442e3d74bfcdb21b347591c..94bed0981f08fd71d5aecc63335d5d03a2d1aaaa 100644 (file)
@@ -313,7 +313,7 @@ func DecodeBintime(b []byte) (nsec int64, err error) {
 }
 
 func Gettimeofday(tv *Timeval) (err error) {
-       // TODO(paulzhol): 
+       // TODO(paulzhol):
        // avoid reopening a file descriptor for /dev/bintime on each call,
        // use lower-level calls to avoid allocation.
 
index 0030960b5ca3adbac6ac9d0d1622cac35bede8c3..89e043f9e69e94ac6b8ce2bc270061053f7dab5e 100644 (file)
@@ -73,7 +73,7 @@ struct sockaddr_any {
        char pad[sizeof(union sockaddr_all) - sizeof(struct sockaddr)];
 };
 
-// copied from /usr/include/linux/un.h 
+// copied from /usr/include/linux/un.h
 struct my_sockaddr_un {
        sa_family_t sun_family;
 #ifdef __ARM_EABI__
index e986abac52a21f40ea758612969b522b6bcf1459..5a2bfd119e17d843c7c64ec1eea5224f95275111 100644 (file)
@@ -1,4 +1,4 @@
-// mksysnum_freebsd.pl 
+// mksysnum_freebsd.pl
 // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
 
 package syscall
index e986abac52a21f40ea758612969b522b6bcf1459..5a2bfd119e17d843c7c64ec1eea5224f95275111 100644 (file)
@@ -1,4 +1,4 @@
-// mksysnum_freebsd.pl 
+// mksysnum_freebsd.pl
 // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
 
 package syscall
index e986abac52a21f40ea758612969b522b6bcf1459..5a2bfd119e17d843c7c64ec1eea5224f95275111 100644 (file)
@@ -1,4 +1,4 @@
-// mksysnum_freebsd.pl 
+// mksysnum_freebsd.pl
 // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
 
 package syscall
index 7f5d9498c295c2259c71b9deecd5a1475993ec2c..7068e4e2105376d2114cb9f8e7987c9dfeec0f44 100644 (file)
@@ -1,4 +1,4 @@
-// mksysnum_linux.pl 
+// mksysnum_linux.pl
 // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
 
 package syscall
index a9bff651fb5260d215df27b9ce517e61d8b756a3..c57096523767ac38f8dd2786e7efd0cc852bd1ef 100644 (file)
@@ -1,4 +1,4 @@
-// mksysnum_netbsd.pl 
+// mksysnum_netbsd.pl
 // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
 
 package syscall
index a9bff651fb5260d215df27b9ce517e61d8b756a3..c57096523767ac38f8dd2786e7efd0cc852bd1ef 100644 (file)
@@ -1,4 +1,4 @@
-// mksysnum_netbsd.pl 
+// mksysnum_netbsd.pl
 // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
 
 package syscall
index 1d97fe0db6f0f102e31f8b302232483a4db7e0a6..927b1379865956abaa788ca8a618316aa428534b 100644 (file)
@@ -1,4 +1,4 @@
-// mksysnum_openbsd.pl 
+// mksysnum_openbsd.pl
 // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
 
 package syscall
index 1d97fe0db6f0f102e31f8b302232483a4db7e0a6..927b1379865956abaa788ca8a618316aa428534b 100644 (file)
@@ -1,4 +1,4 @@
-// mksysnum_openbsd.pl 
+// mksysnum_openbsd.pl
 // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
 
 package syscall
index 60edbd55ebd98ec73e488fbe80efc4426d5dec6f..66b41a50fa7bad82eae15e9bf0d6bf840d1942a8 100644 (file)
@@ -14,7 +14,7 @@
 //     func BenchmarkXxx(*testing.B)
 // are considered benchmarks, and are executed by the "go test" command when
 // the -test.bench flag is provided. Benchmarks are run sequentially.
-// 
+//
 // For a description of the testing flags, see
 // http://golang.org/cmd/go/#Description_of_testing_flags.
 //
@@ -267,7 +267,7 @@ func (c *common) Fatalf(format string, args ...interface{}) {
        c.FailNow()
 }
 
-// Parallel signals that this test is to be run in parallel with (and only with) 
+// Parallel signals that this test is to be run in parallel with (and only with)
 // other parallel tests in this CPU group.
 func (t *T) Parallel() {
        t.signal <- (*T)(nil) // Release main testing loop
@@ -285,7 +285,7 @@ func tRunner(t *T, test *InternalTest) {
        t.start = time.Now()
 
        // When this goroutine is done, either because test.F(t)
-       // returned normally or because a test failure triggered 
+       // returned normally or because a test failure triggered
        // a call to runtime.Goexit, record the duration and send
        // a signal saying that the test is done.
        defer func() {
index ad49514a8bf9dacf655dd3adf05d7db2de272a9a..de1d51851fb3328b81ffe308dcd22532de393a39 100644 (file)
@@ -47,25 +47,25 @@ Josie
 
        // Output:
        // Dear Aunt Mildred,
-       // 
+       //
        // It was a pleasure to see you at the wedding.
        // Thank you for the lovely bone china tea set.
-       // 
+       //
        // Best wishes,
        // Josie
-       // 
+       //
        // Dear Uncle John,
-       // 
+       //
        // It is a shame you couldn't make it to the wedding.
        // Thank you for the lovely moleskin pants.
-       // 
+       //
        // Best wishes,
        // Josie
-       // 
+       //
        // Dear Cousin Rodney,
-       // 
+       //
        // It is a shame you couldn't make it to the wedding.
-       // 
+       //
        // Best wishes,
        // Josie
 }
index d57c09e115ff31f06faa3cb1128dab2c67d96aaf..0eb20c7637cc173b8208302cfb418bc2fa93569c 100644 (file)
@@ -284,7 +284,7 @@ func loadZoneZip(zipfile, name string) (l *Location, err error) {
                //      42      off[4]
                //      46      name[namelen]
                //      46+namelen+xlen+fclen - next header
-               //              
+               //
                if get4(buf) != zcheader {
                        break
                }
index d596fab93d649aa9179b54e1841b28685fa665df..a8d3dcbfeb1b7baba0640440d213a7d1dd7630d0 100644 (file)
@@ -15,9 +15,9 @@ import (
 // BUG(brainman,rsc): On Windows, the operating system does not provide complete
 // time zone information.
 // The implementation assumes that this year's rules for daylight savings
-// time apply to all previous and future years as well. 
+// time apply to all previous and future years as well.
 // Also, time zone abbreviations are unavailable.  The implementation constructs
-// them using the capital letters from a longer time zone description. 
+// them using the capital letters from a longer time zone description.
 
 // abbrev returns the abbreviation to use for the given zone name.
 func abbrev(name []uint16) string {
index 8239557e3fc4ce0b7bcc0f533050e3d8e2e50d65..bee02f9f288ce33222ef9a5ea6d2690210ce9336 100644 (file)
@@ -316,7 +316,7 @@ type foldPair struct {
 // SimpleFold iterates over Unicode code points equivalent under
 // the Unicode-defined simple case folding.  Among the code points
 // equivalent to rune (including rune itself), SimpleFold returns the
-// smallest rune >= r if one exists, or else the smallest rune >= 0. 
+// smallest rune >= r if one exists, or else the smallest rune >= 0.
 //
 // For example:
 //     SimpleFold('A') = 'a'
index 0ec25ab7e2b7835d6ab52fa436bcb2c18b3c2fda..e4d5572a0fecae31eb8e9c65794647a182a1aae8 100644 (file)
@@ -435,7 +435,7 @@ func TestSimpleFold(t *testing.T) {
 // Running 'go test -calibrate' runs the calibration to find a plausible
 // cutoff point for linear search of a range list vs. binary search.
 // We create a fake table and then time how long it takes to do a
-// sequence of searches within that table, for all possible inputs 
+// sequence of searches within that table, for all possible inputs
 // relative to the ranges (something before all, in each, between each, after all).
 // This assumes that all possible runes are equally likely.
 // In practice most runes are ASCII so this is a conservative estimate