]> Cypherpunks repositories - gostls13.git/commitdiff
all: sort imports
authorRuss Cox <rsc@golang.org>
Wed, 2 Nov 2011 19:54:16 +0000 (15:54 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 2 Nov 2011 19:54:16 +0000 (15:54 -0400)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5319072

45 files changed:
src/cmd/godoc/index.go
src/cmd/godoc/snippet.go
src/cmd/govet/govet.go
src/cmd/goyacc/goyacc.go
src/pkg/archive/zip/reader.go
src/pkg/container/heap/heap_test.go
src/pkg/crypto/ecdsa/ecdsa_test.go
src/pkg/crypto/hmac/hmac_test.go
src/pkg/crypto/openpgp/s2k/s2k_test.go
src/pkg/crypto/tls/generate_cert.go
src/pkg/crypto/x509/pkcs1.go
src/pkg/crypto/x509/x509_test.go
src/pkg/debug/gosym/pclntab_test.go
src/pkg/encoding/binary/binary.go
src/pkg/encoding/binary/binary_test.go
src/pkg/exec/exec_test.go
src/pkg/exp/inotify/inotify_linux_test.go
src/pkg/exp/norm/normregtest.go
src/pkg/exp/winfsnotify/winfsnotify_test.go
src/pkg/exp/wingui/gui.go
src/pkg/exp/wingui/winapi.go
src/pkg/http/cgi/host_test.go
src/pkg/http/transfer.go
src/pkg/http/transport_windows.go
src/pkg/image/bmp/reader.go
src/pkg/image/jpeg/writer_test.go
src/pkg/io/multi_test.go
src/pkg/log/log.go
src/pkg/net/ip_test.go
src/pkg/net/lookup_windows.go
src/pkg/net/parse_test.go
src/pkg/net/server_test.go
src/pkg/old/netchan/export.go
src/pkg/os/env_windows.go
src/pkg/os/path_test.go
src/pkg/os/stat_windows.go
src/pkg/path/filepath/match_test.go
src/pkg/rand/rand_test.go
src/pkg/rpc/server.go
src/pkg/runtime/syscall_windows_test.go
src/pkg/sync/once_test.go
src/pkg/time/sleep_test.go
src/pkg/time/zoneinfo_windows.go
src/pkg/unicode/maketables.go
src/pkg/xml/marshal_test.go

index 68d1abe64321ce78ffcb8b86479cb791382fda99..172eae3969984e832d073e6d3387f17bcaeaed0a 100644 (file)
@@ -43,8 +43,8 @@ import (
        "errors"
        "go/ast"
        "go/parser"
-       "go/token"
        "go/scanner"
+       "go/token"
        "gob"
        "index/suffixarray"
        "io"
index 68e27d9a0cb6604d5d8fffb09e0333cc00a65431..c2b74ee52f736a1bb405d79e67facb0a7c1288fe 100644 (file)
@@ -11,9 +11,9 @@ package main
 
 import (
        "bytes"
+       "fmt"
        "go/ast"
        "go/token"
-       "fmt"
 )
 
 type Snippet struct {
index e826f89d71ada7e5f01bb0deb63cea227b77413f..e62c16feeeaeb556de22a07e8bd9ccc54cd0b9ba 100644 (file)
@@ -10,11 +10,11 @@ import (
        "bytes"
        "flag"
        "fmt"
-       "io"
        "go/ast"
        "go/parser"
        "go/printer"
        "go/token"
+       "io"
        "os"
        "path/filepath"
        "reflect"
index d1a90798123f50f98a71a43830d7013e3c672b18..ff18fa7e701b9aabd398ed6b4dc01a124d1d6b09 100644 (file)
@@ -45,12 +45,12 @@ package main
 //
 
 import (
+       "bufio"
+       "bytes"
        "flag"
        "fmt"
-       "bufio"
        "os"
        "strings"
-       "bytes"
 )
 
 // the following are adjustable
index 64152b4245c5366c0b3903eb4af06c7e610ff462..b705ebe7ea6f346c9dc9b49892ed7e9f50988dfb 100644 (file)
@@ -7,10 +7,10 @@ package zip
 import (
        "bufio"
        "compress/flate"
+       "encoding/binary"
        "errors"
        "hash"
        "hash/crc32"
-       "encoding/binary"
        "io"
        "io/ioutil"
        "os"
index 6625e3a2b0f8db13c581c7857241f0f066be522d..cb31ef6d30ab3e1c9c90c2484c500627381e9752 100644 (file)
@@ -5,8 +5,8 @@
 package heap_test
 
 import (
-       "testing"
        . "container/heap"
+       "testing"
 )
 
 type myHeap []int
index d6b40391421c474d5233fd48bf0b21ca033ad27f..baa3c9e933fd73239704178a6f1d159633b914d7 100644 (file)
@@ -7,8 +7,8 @@ package ecdsa
 import (
        "big"
        "crypto/elliptic"
-       "crypto/sha1"
        "crypto/rand"
+       "crypto/sha1"
        "encoding/hex"
        "testing"
 )
index bcae63b8af84e3a2e919d7261e819349e047a35e..03431c92f759be2393fdfc738ea8e82896b046d7 100644 (file)
@@ -5,8 +5,8 @@
 package hmac
 
 import (
-       "hash"
        "fmt"
+       "hash"
        "testing"
 )
 
index ec4012c23846d0daf17aeb7c8b019b10d3d591b6..3a094a10f1f5d2a165e63f0f08a7e39d56085470 100644 (file)
@@ -6,8 +6,8 @@ package s2k
 
 import (
        "bytes"
-       "crypto/sha1"
        "crypto/rand"
+       "crypto/sha1"
        "encoding/hex"
        "testing"
 )
index 41206e276b3790dd3d6ad525dad0094848004f18..ee8784ca6932e4c13b319878585f66627e3d1c12 100644 (file)
@@ -9,10 +9,10 @@ package main
 
 import (
        "big"
-       "crypto/x509/pkix"
        "crypto/rand"
        "crypto/rsa"
        "crypto/x509"
+       "crypto/x509/pkix"
        "encoding/pem"
        "flag"
        "log"
index 0d3ade375789935882637c8b3db022249bdd68dc..8338ae1dd53e1db27be3f8d0d39c21aef11363fe 100644 (file)
@@ -7,8 +7,8 @@ package x509
 import (
        "asn1"
        "big"
-       "errors"
        "crypto/rsa"
+       "errors"
 )
 
 // pkcs1PrivateKey is a structure which mirrors the PKCS#1 ASN.1 for an RSA private key.
index e8449786c27dc54886a12b9e94a557a77ac18d13..d113f850eb067f8575bdae88bdd7c11def9f13cc 100644 (file)
@@ -6,8 +6,8 @@ package x509
 
 import (
        "asn1"
-       "bytes"
        "big"
+       "bytes"
        "crypto/dsa"
        "crypto/rand"
        "crypto/rsa"
index c83e64eabd76e11604ecf1f1b99ccd92037be770..562e7a0a37fff673d92e08d9fe2c893699364cdd 100644 (file)
@@ -7,8 +7,8 @@ package gosym
 import (
        "debug/elf"
        "os"
-       "testing"
        "syscall"
+       "testing"
 )
 
 func dotest() bool {
index 65b9f013fcd71da79293f8048f6d5e3d5624db8a..d2f8b1e62483efc39a4d929b4fe860bab5154c91 100644 (file)
@@ -9,8 +9,8 @@ package binary
 
 import (
        "errors"
-       "math"
        "io"
+       "math"
        "reflect"
 )
 
index e3bf17ccc9f60502292e28adbd100a5de8114f46..fd4fdb015747ef1cab8b61f9a3bbdc2af8804355 100644 (file)
@@ -5,8 +5,8 @@
 package binary
 
 import (
-       "io"
        "bytes"
+       "io"
        "math"
        "reflect"
        "testing"
index 6d5e8933ff7b962009de225141043710eec4daab..8f63653c014d58d9f7708592b7516318fd964932 100644 (file)
@@ -10,11 +10,11 @@ import (
        "fmt"
        "io"
        "io/ioutil"
-       "testing"
        "os"
        "runtime"
        "strconv"
        "strings"
+       "testing"
 )
 
 func helperCommand(s ...string) *Cmd {
index aa72604eb925ae258de46bbb3ca61ef637d72607..a6bb46fe77d0d82eeebfb599a8b8a49065b6ba72 100644 (file)
@@ -6,8 +6,8 @@ package inotify
 
 import (
        "os"
-       "time"
        "testing"
+       "time"
 )
 
 func TestInotifyEvents(t *testing.T) {
index 6e27f638aa060ab2e74dd2b7dc9d3a3ad0f9f4f9..744bb1cd6c2c51f2923679a9efecb3a642f11c6e 100644 (file)
@@ -17,8 +17,8 @@ import (
        "path"
        "regexp"
        "runtime"
-       "strings"
        "strconv"
+       "strings"
        "time"
        "utf8"
 )
index ff7735aa6a43262aaaf4513e8960bd1839c7b2b4..fb2b825e68e3fac258a72a46db6f4d4235183645 100644 (file)
@@ -6,8 +6,8 @@ package winfsnotify
 
 import (
        "os"
-       "time"
        "testing"
+       "time"
 )
 
 func expect(t *testing.T, eventstream <-chan *Event, name string, mask uint32) {
index a2f16f282b164d42a58284c7c266dc83347d030d..5df2ee0faa141bae202604978429a2b6d61eab09 100644 (file)
@@ -6,8 +6,8 @@ package main
 
 import (
        "fmt"
-       "syscall"
        "os"
+       "syscall"
        "unsafe"
 )
 
index 32015287c92c95e1fe5bc929d1b693e08031cd21..08059df2b9d9d428259754ed95aee7ae3b57d73f 100644 (file)
@@ -5,8 +5,8 @@
 package main
 
 import (
-       "unsafe"
        "syscall"
+       "unsafe"
 )
 
 type Wndclassex struct {
index 2bfe18b1dc3ae4a58e5d4709909b5e18d354d496..fd0e0993713c541ef3371c44a432048d22b63356 100644 (file)
@@ -13,14 +13,14 @@ import (
        "http"
        "http/httptest"
        "io"
-       "os"
        "net"
+       "os"
        "path/filepath"
+       "runtime"
        "strconv"
        "strings"
        "testing"
        "time"
-       "runtime"
 )
 
 func newRequest(httpreq string) *http.Request {
index 6cb8625e7d462a9f944a6a5950e118476e49264c..94772183f0094efa8546cfba4fd290965575a554 100644 (file)
@@ -5,8 +5,8 @@
 package http
 
 import (
-       "bytes"
        "bufio"
+       "bytes"
        "errors"
        "fmt"
        "io"
index e0dc857aa94a39f1a3d45ecb4f007635a9f4ffc6..2a20d2224ae47c692fba2c34cd022287ac906381 100644 (file)
@@ -5,8 +5,8 @@
 package http
 
 import (
-       "os"
        "net"
+       "os"
 )
 
 func init() {
index ad5686549928186753372c390d6a2329fe8ac146..58bd7812ffd0dd7f28cbba820249b232dd0b3ac3 100644 (file)
@@ -9,8 +9,8 @@ package bmp
 
 import (
        "errors"
-       "image/color"
        "image"
+       "image/color"
        "io"
 )
 
index 72cec93b3ba42047b66dac1acc3c305d12e5d358..76b5281c088008747b375a28cb48d223edc52cb4 100644 (file)
@@ -10,8 +10,8 @@ import (
        "image/color"
        "image/png"
        "io/ioutil"
-       "rand"
        "os"
+       "rand"
        "testing"
 )
 
index bb439f04b881a70605f91fc2a9b4dc10db8cf932..0de5cc312d02f24544dfd20d04a64778fc92288e 100644 (file)
@@ -5,10 +5,10 @@
 package io_test
 
 import (
-       . "io"
        "bytes"
        "crypto/sha1"
        "fmt"
+       . "io"
        "strings"
        "testing"
 )
index 55b7e9ef9e0977b6fec67e7fa17b28007a02818f..b5368af53197b4844913997f86eda8fcfc1ade6b 100644 (file)
@@ -16,10 +16,10 @@ import (
        "bytes"
        "fmt"
        "io"
-       "runtime"
        "os"
-       "time"
+       "runtime"
        "sync"
+       "time"
 )
 
 // These flags define which text to prefix to each log entry generated by the Logger.
index 0ca315e7c078f49b88111ac343483ba44c1563b6..df647ef73c0f8fda053474f95454209a1358c646 100644 (file)
@@ -7,8 +7,8 @@ package net
 import (
        "bytes"
        "reflect"
-       "testing"
        "runtime"
+       "testing"
 )
 
 func isEqual(a, b []byte) bool {
index b515d0c851bfaf9a5aba1f3a558df587dabdc305..61d8a8871e1d4ac80d23fb419f84c3090637c73a 100644 (file)
@@ -5,10 +5,10 @@
 package net
 
 import (
-       "syscall"
-       "unsafe"
        "os"
        "sync"
+       "syscall"
+       "unsafe"
 )
 
 var (
index 8d51eba18c36ec05fa2f7ddec59c4283e3f6d1d0..dfbaba4d9e8db7580dc0036933cacbf711904621 100644 (file)
@@ -7,8 +7,8 @@ package net
 import (
        "bufio"
        "os"
-       "testing"
        "runtime"
+       "testing"
 )
 
 func TestReadLine(t *testing.T) {
index 9e5444980f6f2ec6b67bcf459d1f320fc825b96d..7d17ccd53c37b660337770d6fe4b431e234cf6ce 100644 (file)
@@ -8,10 +8,10 @@ import (
        "flag"
        "io"
        "os"
+       "runtime"
        "strings"
        "syscall"
        "testing"
-       "runtime"
 )
 
 // Do not test empty datagrams by default.
index a4c4c6aeb5948c6c2fa9a0164c7f12ceb49810f8..d698dd53a900c069515b2dbd6d25d715a6f580ed 100644 (file)
@@ -23,8 +23,8 @@ package netchan
 
 import (
        "errors"
-       "log"
        "io"
+       "log"
        "net"
        "reflect"
        "strconv"
index 795da21a44a3e0b79371be99c2932d2c451bf6c1..ad6c8e306cf61cc9598de730f0f2679c713118e3 100644 (file)
@@ -9,8 +9,8 @@ package os
 import (
        "errors"
        "syscall"
-       "utf16"
        "unsafe"
+       "utf16"
 )
 
 // ENOENV is the error indicating that an environment variable does not exist.
index f0da186ac9b0f373d4a0008f814d31af1675f559..89d66c29ef92f53ef1cafca22e9d8106c7a46a41 100644 (file)
@@ -7,9 +7,9 @@ package os_test
 import (
        . "os"
        "path/filepath"
-       "testing"
        "runtime"
        "syscall"
+       "testing"
 )
 
 func TestMkdirAll(t *testing.T) {
index c9f1c4e650884af97541faab7e452a585053d507..416aeea33d3b1a7c02042597fd1cee09b61bed3d 100644 (file)
@@ -5,8 +5,8 @@
 package os
 
 import (
-       "unsafe"
        "syscall"
+       "unsafe"
 )
 
 // Stat returns the FileInfo structure describing file.
index cdf3b66a88e10f54bba7ddbe3ebe2c47c61a943c..7bdc449bc10431aea4dba23fbfbcf42b258f7463 100644 (file)
@@ -6,8 +6,8 @@ package filepath_test
 
 import (
        . "path/filepath"
-       "testing"
        "runtime"
+       "testing"
 )
 
 type MatchTest struct {
index 66ffa58cd5b0132b5afca530ee943f972bd1cdcc..76215a978afb05fbcb585d977b5a69dd5ff82acb 100644 (file)
@@ -6,8 +6,8 @@ package rand
 
 import (
        "errors"
-       "math"
        "fmt"
+       "math"
        "testing"
 )
 
index 0f7f0b47a647ad7ef806e7d020c46b684bc532f1..d03153305cc50038fb8356316eafafbef1025a29 100644 (file)
@@ -117,8 +117,8 @@ import (
        "errors"
        "gob"
        "http"
-       "log"
        "io"
+       "log"
        "net"
        "reflect"
        "strings"
index c99756efa4a6622bf63ffcd122c194e728eadcef..9c3752fa303d2797fc4936407a90d213ef9abc2f 100644 (file)
@@ -6,8 +6,8 @@ package runtime_test
 
 import (
        "syscall"
-       "unsafe"
        "testing"
+       "unsafe"
 )
 
 type DLL struct {
index 157a3667a64e396c8d78df9954d29d70f39ead7f..37075af171b5d14129b82ec14890e39cc875d99d 100644 (file)
@@ -5,9 +5,9 @@
 package sync_test
 
 import (
+       "runtime"
        . "sync"
        "sync/atomic"
-       "runtime"
        "testing"
 )
 
index 5b02c8d23441448b500ce15d96fdd8c474f12583..029a6cca07865a76a06697a46b8ee5b443c02e6e 100644 (file)
@@ -7,8 +7,8 @@ package time_test
 import (
        "errors"
        "fmt"
-       "testing"
        "sort"
+       "testing"
        . "time"
 )
 
index ba9295c65d4d881658ffb46e16bd7bab8ff9a572..ba152e0882a2995f64791c7e8fb5fdce1b623482 100644 (file)
@@ -5,9 +5,9 @@
 package time
 
 import (
-       "syscall"
-       "sync"
        "os"
+       "sync"
+       "syscall"
 )
 
 // BUG(brainman): The Windows implementation assumes that
index b7c23aed28f11ec9cd62941c119e9e00456297e3..8f511fa53fad9329cc38f6dc4d60f8042b3e1466 100644 (file)
@@ -16,10 +16,10 @@ import (
        "log"
        "os"
        "path/filepath"
+       "regexp"
        "sort"
        "strconv"
        "strings"
-       "regexp"
        "unicode"
 )
 
index 59007b364562628ab114cd23bd9e7c154329a03f..a6f7d2d0c27bdca43c72a2acf81a915c5eda2e5b 100644 (file)
@@ -5,11 +5,11 @@
 package xml
 
 import (
-       "reflect"
-       "testing"
        "bytes"
-       "strings"
+       "reflect"
        "strconv"
+       "strings"
+       "testing"
 )
 
 type DriveType int