all: sort imports

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5319072
This commit is contained in:
Russ Cox 2011-11-02 15:54:16 -04:00
parent 4a9ebb18f1
commit 965845a86d
45 changed files with 52 additions and 52 deletions

View File

@ -43,8 +43,8 @@ import (
"errors"
"go/ast"
"go/parser"
"go/token"
"go/scanner"
"go/token"
"gob"
"index/suffixarray"
"io"

View File

@ -11,9 +11,9 @@ package main
import (
"bytes"
"fmt"
"go/ast"
"go/token"
"fmt"
)
type Snippet struct {

View File

@ -10,11 +10,11 @@ import (
"bytes"
"flag"
"fmt"
"io"
"go/ast"
"go/parser"
"go/printer"
"go/token"
"io"
"os"
"path/filepath"
"reflect"

View File

@ -45,12 +45,12 @@ package main
//
import (
"bufio"
"bytes"
"flag"
"fmt"
"bufio"
"os"
"strings"
"bytes"
)
// the following are adjustable

View File

@ -7,10 +7,10 @@ package zip
import (
"bufio"
"compress/flate"
"encoding/binary"
"errors"
"hash"
"hash/crc32"
"encoding/binary"
"io"
"io/ioutil"
"os"

View File

@ -5,8 +5,8 @@
package heap_test
import (
"testing"
. "container/heap"
"testing"
)
type myHeap []int

View File

@ -7,8 +7,8 @@ package ecdsa
import (
"big"
"crypto/elliptic"
"crypto/sha1"
"crypto/rand"
"crypto/sha1"
"encoding/hex"
"testing"
)

View File

@ -5,8 +5,8 @@
package hmac
import (
"hash"
"fmt"
"hash"
"testing"
)

View File

@ -6,8 +6,8 @@ package s2k
import (
"bytes"
"crypto/sha1"
"crypto/rand"
"crypto/sha1"
"encoding/hex"
"testing"
)

View 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"

View 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.

View File

@ -6,8 +6,8 @@ package x509
import (
"asn1"
"bytes"
"big"
"bytes"
"crypto/dsa"
"crypto/rand"
"crypto/rsa"

View File

@ -7,8 +7,8 @@ package gosym
import (
"debug/elf"
"os"
"testing"
"syscall"
"testing"
)
func dotest() bool {

View File

@ -9,8 +9,8 @@ package binary
import (
"errors"
"math"
"io"
"math"
"reflect"
)

View File

@ -5,8 +5,8 @@
package binary
import (
"io"
"bytes"
"io"
"math"
"reflect"
"testing"

View File

@ -10,11 +10,11 @@ import (
"fmt"
"io"
"io/ioutil"
"testing"
"os"
"runtime"
"strconv"
"strings"
"testing"
)
func helperCommand(s ...string) *Cmd {

View File

@ -6,8 +6,8 @@ package inotify
import (
"os"
"time"
"testing"
"time"
)
func TestInotifyEvents(t *testing.T) {

View File

@ -17,8 +17,8 @@ import (
"path"
"regexp"
"runtime"
"strings"
"strconv"
"strings"
"time"
"utf8"
)

View File

@ -6,8 +6,8 @@ package winfsnotify
import (
"os"
"time"
"testing"
"time"
)
func expect(t *testing.T, eventstream <-chan *Event, name string, mask uint32) {

View File

@ -6,8 +6,8 @@ package main
import (
"fmt"
"syscall"
"os"
"syscall"
"unsafe"
)

View File

@ -5,8 +5,8 @@
package main
import (
"unsafe"
"syscall"
"unsafe"
)
type Wndclassex struct {

View 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 {

View File

@ -5,8 +5,8 @@
package http
import (
"bytes"
"bufio"
"bytes"
"errors"
"fmt"
"io"

View File

@ -5,8 +5,8 @@
package http
import (
"os"
"net"
"os"
)
func init() {

View File

@ -9,8 +9,8 @@ package bmp
import (
"errors"
"image/color"
"image"
"image/color"
"io"
)

View File

@ -10,8 +10,8 @@ import (
"image/color"
"image/png"
"io/ioutil"
"rand"
"os"
"rand"
"testing"
)

View File

@ -5,10 +5,10 @@
package io_test
import (
. "io"
"bytes"
"crypto/sha1"
"fmt"
. "io"
"strings"
"testing"
)

View 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.

View File

@ -7,8 +7,8 @@ package net
import (
"bytes"
"reflect"
"testing"
"runtime"
"testing"
)
func isEqual(a, b []byte) bool {

View File

@ -5,10 +5,10 @@
package net
import (
"syscall"
"unsafe"
"os"
"sync"
"syscall"
"unsafe"
)
var (

View File

@ -7,8 +7,8 @@ package net
import (
"bufio"
"os"
"testing"
"runtime"
"testing"
)
func TestReadLine(t *testing.T) {

View File

@ -8,10 +8,10 @@ import (
"flag"
"io"
"os"
"runtime"
"strings"
"syscall"
"testing"
"runtime"
)
// Do not test empty datagrams by default.

View File

@ -23,8 +23,8 @@ package netchan
import (
"errors"
"log"
"io"
"log"
"net"
"reflect"
"strconv"

View 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.

View File

@ -7,9 +7,9 @@ package os_test
import (
. "os"
"path/filepath"
"testing"
"runtime"
"syscall"
"testing"
)
func TestMkdirAll(t *testing.T) {

View File

@ -5,8 +5,8 @@
package os
import (
"unsafe"
"syscall"
"unsafe"
)
// Stat returns the FileInfo structure describing file.

View File

@ -6,8 +6,8 @@ package filepath_test
import (
. "path/filepath"
"testing"
"runtime"
"testing"
)
type MatchTest struct {

View File

@ -6,8 +6,8 @@ package rand
import (
"errors"
"math"
"fmt"
"math"
"testing"
)

View File

@ -117,8 +117,8 @@ import (
"errors"
"gob"
"http"
"log"
"io"
"log"
"net"
"reflect"
"strings"

View File

@ -6,8 +6,8 @@ package runtime_test
import (
"syscall"
"unsafe"
"testing"
"unsafe"
)
type DLL struct {

View File

@ -5,9 +5,9 @@
package sync_test
import (
"runtime"
. "sync"
"sync/atomic"
"runtime"
"testing"
)

View File

@ -7,8 +7,8 @@ package time_test
import (
"errors"
"fmt"
"testing"
"sort"
"testing"
. "time"
)

View File

@ -5,9 +5,9 @@
package time
import (
"syscall"
"sync"
"os"
"sync"
"syscall"
)
// BUG(brainman): The Windows implementation assumes that

View File

@ -16,10 +16,10 @@ import (
"log"
"os"
"path/filepath"
"regexp"
"sort"
"strconv"
"strings"
"regexp"
"unicode"
)

View File

@ -5,11 +5,11 @@
package xml
import (
"reflect"
"testing"
"bytes"
"strings"
"reflect"
"strconv"
"strings"
"testing"
)
type DriveType int