1
0
mirror of https://github.com/golang/go synced 2024-11-25 02:57:57 -07:00

renaming_2: gofix -r go1pkgrename src/pkg/[a-l]*

R=rsc
CC=golang-dev
https://golang.org/cl/5358041
This commit is contained in:
Rob Pike 2011-11-08 15:40:58 -08:00
parent 6ab6c49fce
commit 30aa701fec
83 changed files with 94 additions and 94 deletions

View File

@ -7,7 +7,7 @@ package zip
import (
"bytes"
"io/ioutil"
"rand"
"math/rand"
"testing"
)

View File

@ -11,7 +11,7 @@ import (
"bytes"
"io"
"strconv"
"utf8"
"unicode/utf8"
)
const (

View File

@ -14,7 +14,7 @@ import (
"strings"
"testing"
"testing/iotest"
"utf8"
"unicode/utf8"
)
// Reads from a reader and rot13s the result.

View File

@ -9,7 +9,7 @@ package bytes
import (
"errors"
"io"
"utf8"
"unicode/utf8"
)
// A Buffer is a variable-sized buffer of bytes with Read and Write methods.

View File

@ -7,9 +7,9 @@ package bytes_test
import (
. "bytes"
"io"
"rand"
"math/rand"
"testing"
"utf8"
"unicode/utf8"
)
const N = 10000 // make this bigger for a larger (and slower) test

View File

@ -8,7 +8,7 @@ package bytes
import (
"unicode"
"utf8"
"unicode/utf8"
)
// Compare returns an integer comparing the two byte arrays lexicographically.

View File

@ -9,7 +9,7 @@ import (
"reflect"
"testing"
"unicode"
"utf8"
"unicode/utf8"
)
func eq(a, b []string) bool {

View File

@ -6,9 +6,9 @@
package dsa
import (
"big"
"errors"
"io"
"math/big"
)
// Parameters represents the domain parameters for a key. These parameters can

View File

@ -5,8 +5,8 @@
package dsa
import (
"big"
"crypto/rand"
"math/big"
"testing"
)

View File

@ -13,9 +13,9 @@ package ecdsa
// http://www.secg.org/download/aid-780/sec1-v2.pdf
import (
"big"
"crypto/elliptic"
"io"
"math/big"
)
// PublicKey represents an ECDSA public key.

View File

@ -5,11 +5,11 @@
package ecdsa
import (
"big"
"crypto/elliptic"
"crypto/rand"
"crypto/sha1"
"encoding/hex"
"math/big"
"testing"
)

View File

@ -14,8 +14,8 @@ package elliptic
// reverse the transform than to operate in affine coordinates.
import (
"big"
"io"
"math/big"
"sync"
)

View File

@ -5,9 +5,9 @@
package elliptic
import (
"big"
"crypto/rand"
"fmt"
"math/big"
"testing"
)

View File

@ -8,12 +8,12 @@
package ocsp
import (
"asn1"
"crypto"
"crypto/rsa"
_ "crypto/sha1"
"crypto/x509"
"crypto/x509/pkix"
"encoding/asn1"
"time"
)

View File

@ -13,11 +13,11 @@
package elgamal
import (
"big"
"crypto/rand"
"crypto/subtle"
"errors"
"io"
"math/big"
)
// PublicKey represents an ElGamal public key.

View File

@ -5,9 +5,9 @@
package elgamal
import (
"big"
"bytes"
"crypto/rand"
"math/big"
"testing"
)

View File

@ -5,13 +5,13 @@
package packet
import (
"big"
"crypto/openpgp/elgamal"
error_ "crypto/openpgp/error"
"crypto/rand"
"crypto/rsa"
"encoding/binary"
"io"
"math/big"
"strconv"
)

View File

@ -5,11 +5,11 @@
package packet
import (
"big"
"bytes"
"crypto/rand"
"crypto/rsa"
"fmt"
"math/big"
"testing"
)

View File

@ -7,12 +7,12 @@
package packet
import (
"big"
"crypto/aes"
"crypto/cast5"
"crypto/cipher"
error_ "crypto/openpgp/error"
"io"
"math/big"
)
// readFull is the same as io.ReadFull except that reading zero bytes returns

View File

@ -5,7 +5,6 @@
package packet
import (
"big"
"bytes"
"crypto/cipher"
"crypto/dsa"
@ -16,6 +15,7 @@ import (
"crypto/sha1"
"io"
"io/ioutil"
"math/big"
"strconv"
)

View File

@ -5,7 +5,6 @@
package packet
import (
"big"
"crypto/dsa"
"crypto/openpgp/elgamal"
error_ "crypto/openpgp/error"
@ -15,6 +14,7 @@ import (
"fmt"
"hash"
"io"
"math/big"
"strconv"
)

View File

@ -5,8 +5,8 @@
package rand
import (
"big"
"io"
"math/big"
"os"
)

View File

@ -5,11 +5,11 @@
package rsa
import (
"big"
"crypto"
"crypto/subtle"
"errors"
"io"
"math/big"
)
// This file implements encryption and decryption using PKCS#1 v1.5 padding.

View File

@ -5,7 +5,6 @@
package rsa
import (
"big"
"bytes"
"crypto"
"crypto/rand"
@ -13,6 +12,7 @@ import (
"encoding/base64"
"encoding/hex"
"io"
"math/big"
"testing"
"testing/quick"
)

View File

@ -8,12 +8,12 @@ package rsa
// TODO(agl): Add support for PSS padding.
import (
"big"
"crypto/rand"
"crypto/subtle"
"errors"
"hash"
"io"
"math/big"
)
var bigZero = big.NewInt(0)

View File

@ -5,10 +5,10 @@
package rsa
import (
"big"
"bytes"
"crypto/rand"
"crypto/sha1"
"math/big"
"testing"
)

View File

@ -8,7 +8,6 @@
package main
import (
"big"
"crypto/rand"
"crypto/rsa"
"crypto/x509"
@ -16,6 +15,7 @@ import (
"encoding/pem"
"flag"
"log"
"math/big"
"os"
"time"
)

View File

@ -5,7 +5,7 @@
package tls
import (
"rand"
"math/rand"
"reflect"
"testing"
"testing/quick"

View File

@ -5,12 +5,12 @@
package tls
import (
"big"
"bytes"
"crypto/rsa"
"encoding/hex"
"flag"
"io"
"math/big"
"net"
"strconv"
"strings"

View File

@ -5,7 +5,6 @@
package tls
import (
"big"
"crypto"
"crypto/elliptic"
"crypto/md5"
@ -14,6 +13,7 @@ import (
"crypto/x509"
"errors"
"io"
"math/big"
)
// rsaKeyAgreement implements the standard TLS key agreement where the client

View File

@ -5,10 +5,10 @@
package x509
import (
"asn1"
"big"
"crypto/rsa"
"encoding/asn1"
"errors"
"math/big"
)
// pkcs1PrivateKey is a structure which mirrors the PKCS#1 ASN.1 for an RSA private key.

View File

@ -7,8 +7,8 @@
package pkix
import (
"asn1"
"big"
"encoding/asn1"
"math/big"
"time"
)

View File

@ -6,17 +6,17 @@
package x509
import (
"asn1"
"big"
"bytes"
"crypto"
"crypto/dsa"
"crypto/rsa"
"crypto/sha1"
"crypto/x509/pkix"
"encoding/asn1"
"encoding/pem"
"errors"
"io"
"math/big"
"time"
)

View File

@ -5,16 +5,16 @@
package x509
import (
"asn1"
"big"
"bytes"
"crypto/dsa"
"crypto/rand"
"crypto/rsa"
"crypto/x509/pkix"
"encoding/asn1"
"encoding/base64"
"encoding/hex"
"encoding/pem"
"math/big"
"testing"
"time"
)

View File

@ -20,8 +20,8 @@ package asn1
// everything by any means.
import (
"big"
"fmt"
"math/big"
"reflect"
"time"
)

View File

@ -5,10 +5,10 @@
package asn1
import (
"big"
"bytes"
"fmt"
"io"
"math/big"
"reflect"
"time"
)

View File

@ -9,7 +9,7 @@ import (
"io"
"strings"
"unicode"
"utf8"
"unicode/utf8"
)
// A Writer writes records to a CSV encoded file.

View File

@ -3,8 +3,8 @@ package main
// Need to compile package gob with debug.go to build this program.
import (
"encoding/gob"
"fmt"
"gob"
"os"
)

View File

@ -11,7 +11,7 @@ import (
"reflect"
"sync"
"unicode"
"utf8"
"unicode/utf8"
)
// userTypeInfo stores the information associated with a type the user has handed

View File

@ -15,8 +15,8 @@ import (
"strconv"
"strings"
"unicode"
"utf16"
"utf8"
"unicode/utf16"
"unicode/utf8"
)
// Unmarshal parses the JSON-encoded data and stores the result

View File

@ -17,7 +17,7 @@ import (
"sort"
"strconv"
"unicode"
"utf8"
"unicode/utf8"
)
// Marshal returns the JSON encoding of v.

View File

@ -7,7 +7,7 @@ package json
import (
"bytes"
"math"
"rand"
"math/rand"
"reflect"
"testing"
)

View File

@ -13,7 +13,7 @@ import (
"strconv"
"strings"
"unicode"
"utf8"
"unicode/utf8"
)
// BUG(rsc): Mapping between XML elements and data structures is inherently flawed:

View File

@ -21,7 +21,7 @@ import (
"strconv"
"strings"
"unicode"
"utf8"
"unicode/utf8"
)
// A SyntaxError represents a syntax error in the XML input stream.

View File

@ -25,9 +25,9 @@ package ebnf
import (
"errors"
"fmt"
"scanner"
"text/scanner"
"unicode"
"utf8"
"unicode/utf8"
)
// ----------------------------------------------------------------------------

View File

@ -6,8 +6,8 @@ package ebnf
import (
"io"
"scanner"
"strconv"
"text/scanner"
)
type parser struct {

View File

@ -4,7 +4,7 @@
package norm
import "utf8"
import "unicode/utf8"
const (
maxCombiningChars = 30

View File

@ -4,7 +4,7 @@
package norm
import "utf8"
import "unicode/utf8"
type input interface {
skipASCII(p int) int

View File

@ -12,9 +12,9 @@ import (
"bytes"
"flag"
"fmt"
"http"
"io"
"log"
"net/http"
"os"
"regexp"
"strconv"

View File

@ -5,7 +5,7 @@
// Package norm contains types and functions for normalizing Unicode strings.
package norm
import "utf8"
import "unicode/utf8"
// A Form denotes a canonical representation of Unicode code points.
// The Unicode-defined normalization and equivalence forms are:

View File

@ -10,9 +10,9 @@ import (
"exp/norm"
"flag"
"fmt"
"http"
"io"
"log"
"net/http"
"os"
"path"
"regexp"
@ -20,7 +20,7 @@ import (
"strconv"
"strings"
"time"
"utf8"
"unicode/utf8"
)
func main() {

View File

@ -2,7 +2,7 @@ package norm
import (
"testing"
"utf8"
"unicode/utf8"
)
// Test data is located in triedata_test.go; generated by maketesttables.

View File

@ -14,7 +14,7 @@ import (
"fmt"
"hash/crc32"
"log"
"utf8"
"unicode/utf8"
)
const blockSize = 64

View File

@ -7,8 +7,8 @@ package spdy
import (
"compress/zlib"
"encoding/binary"
"http"
"io"
"net/http"
"strings"
)

View File

@ -6,8 +6,8 @@ package spdy
import (
"bytes"
"http"
"io"
"net/http"
"reflect"
"testing"
)

View File

@ -7,8 +7,8 @@ package spdy
import (
"bytes"
"compress/zlib"
"http"
"io"
"net/http"
)
// Data Frame Format

View File

@ -6,8 +6,8 @@ package spdy
import (
"encoding/binary"
"http"
"io"
"net/http"
"strings"
)

View File

@ -5,12 +5,12 @@
package ssh
import (
"big"
"crypto"
"crypto/rand"
"errors"
"fmt"
"io"
"math/big"
"net"
"sync"
)

View File

@ -5,7 +5,7 @@
package ssh
import (
"big"
"math/big"
"strconv"
"sync"
)

View File

@ -5,9 +5,9 @@
package ssh
import (
"big"
"bytes"
"io"
"math/big"
"reflect"
)

View File

@ -5,8 +5,8 @@
package ssh
import (
"big"
"rand"
"math/big"
"math/rand"
"reflect"
"testing"
"testing/quick"

View File

@ -5,7 +5,6 @@
package ssh
import (
"big"
"bytes"
"crypto"
"crypto/rand"
@ -14,6 +13,7 @@ import (
"encoding/pem"
"errors"
"io"
"math/big"
"net"
"sync"
)

View File

@ -7,8 +7,8 @@
package types
import (
"big"
"go/token"
"math/big"
"strconv"
)

View File

@ -8,17 +8,17 @@
package types
import (
"big"
"errors"
"fmt"
"go/ast"
"go/token"
"io"
"math/big"
"os"
"path/filepath"
"runtime"
"scanner"
"strconv"
"text/scanner"
)
const trace = false // set to true for debugging

View File

@ -5,9 +5,9 @@
package types
import (
"exec"
"go/ast"
"io/ioutil"
"os/exec"
"path/filepath"
"runtime"
"strings"

View File

@ -23,10 +23,10 @@ package expvar
import (
"bytes"
"encoding/json"
"fmt"
"http"
"json"
"log"
"net/http"
"os"
"runtime"
"strconv"

View File

@ -5,7 +5,7 @@
package expvar
import (
"json"
"encoding/json"
"testing"
)

View File

@ -8,7 +8,7 @@ import (
"bytes"
"strconv"
"unicode"
"utf8"
"unicode/utf8"
)
const (

View File

@ -12,7 +12,7 @@ import (
"reflect"
"sync"
"unicode"
"utf8"
"unicode/utf8"
)
// Some constants in the form of bytes, to avoid string overhead.

View File

@ -14,7 +14,7 @@ import (
"strconv"
"strings"
"unicode"
"utf8"
"unicode/utf8"
)
// runeUnreader is the interface to something that can unread runes.

View File

@ -15,7 +15,7 @@ import (
"regexp"
"strings"
"testing"
"utf8"
"unicode/utf8"
)
type ScanTest struct {

View File

@ -10,7 +10,7 @@ package ast
import (
"go/token"
"unicode"
"utf8"
"unicode/utf8"
)
// ----------------------------------------------------------------------------

View File

@ -8,9 +8,9 @@ package build
import (
"bytes"
"errors"
"exec"
"fmt"
"os"
"os/exec"
"path/filepath"
"regexp"
"runtime"

View File

@ -5,7 +5,7 @@
package build
import (
"exec"
"os/exec"
"path/filepath"
"reflect"
"runtime"

View File

@ -11,7 +11,7 @@ import (
"io"
"regexp"
"strings"
"template" // for HTMLEscape
"text/template" // for HTMLEscape
)
func isWhitespace(ch byte) bool { return ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r' }

View File

@ -10,7 +10,7 @@ import (
"go/ast"
"strings"
"unicode"
"utf8"
"unicode/utf8"
)
type Example struct {

View File

@ -13,7 +13,7 @@ import (
"io"
"os"
"path/filepath"
"tabwriter"
"text/tabwriter"
)
const debug = false // enable for debugging

View File

@ -27,7 +27,7 @@ import (
"path/filepath"
"strconv"
"unicode"
"utf8"
"unicode/utf8"
)
// A Scanner holds the scanner's internal state while processing

View File

@ -5,7 +5,7 @@
package token
import (
"gob"
"encoding/gob"
"io"
)

View File

@ -6,7 +6,7 @@ package html
import (
"testing"
"utf8"
"unicode/utf8"
)
func TestEntityLength(t *testing.T) {

View File

@ -7,7 +7,7 @@ package html
import (
"bytes"
"strings"
"utf8"
"unicode/utf8"
)
// These replacements permit compatibility with old numeric entities that

View File

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

View File

@ -6,7 +6,7 @@ package suffixarray
import (
"bytes"
"rand"
"math/rand"
"regexp"
"sort"
"strings"