lab.nexedi.com will be down from Thursday, 20 March 2025, 07:30:00 UTC for a duration of approximately 2 hours

Commit 30aa701f authored by Rob Pike's avatar Rob Pike

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

R=rsc
CC=golang-dev
https://golang.org/cl/5358041
parent 6ab6c49f
......@@ -7,7 +7,7 @@ package zip
import (
"bytes"
"io/ioutil"
"rand"
"math/rand"
"testing"
)
......
......@@ -11,7 +11,7 @@ import (
"bytes"
"io"
"strconv"
"utf8"
"unicode/utf8"
)
const (
......
......@@ -14,7 +14,7 @@ import (
"strings"
"testing"
"testing/iotest"
"utf8"
"unicode/utf8"
)
// Reads from a reader and rot13s the result.
......
......@@ -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.
......
......@@ -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
......
......@@ -8,7 +8,7 @@ package bytes
import (
"unicode"
"utf8"
"unicode/utf8"
)
// Compare returns an integer comparing the two byte arrays lexicographically.
......
......@@ -9,7 +9,7 @@ import (
"reflect"
"testing"
"unicode"
"utf8"
"unicode/utf8"
)
func eq(a, b []string) bool {
......
......@@ -6,9 +6,9 @@
package dsa
import (
"big"
"errors"
"io"
"math/big"
)
// Parameters represents the domain parameters for a key. These parameters can
......
......@@ -5,8 +5,8 @@
package dsa
import (
"big"
"crypto/rand"
"math/big"
"testing"
)
......
......@@ -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.
......
......@@ -5,11 +5,11 @@
package ecdsa
import (
"big"
"crypto/elliptic"
"crypto/rand"
"crypto/sha1"
"encoding/hex"
"math/big"
"testing"
)
......
......@@ -14,8 +14,8 @@ package elliptic
// reverse the transform than to operate in affine coordinates.
import (
"big"
"io"
"math/big"
"sync"
)
......
......@@ -5,9 +5,9 @@
package elliptic
import (
"big"
"crypto/rand"
"fmt"
"math/big"
"testing"
)
......
......@@ -8,12 +8,12 @@
package ocsp
import (
"asn1"
"crypto"
"crypto/rsa"
_ "crypto/sha1"
"crypto/x509"
"crypto/x509/pkix"
"encoding/asn1"
"time"
)
......
......@@ -13,11 +13,11 @@
package elgamal
import (
"big"
"crypto/rand"
"crypto/subtle"
"errors"
"io"
"math/big"
)
// PublicKey represents an ElGamal public key.
......
......@@ -5,9 +5,9 @@
package elgamal
import (
"big"
"bytes"
"crypto/rand"
"math/big"
"testing"
)
......
......@@ -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"
)
......
......@@ -5,11 +5,11 @@
package packet
import (
"big"
"bytes"
"crypto/rand"
"crypto/rsa"
"fmt"
"math/big"
"testing"
)
......
......@@ -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
......
......@@ -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"
)
......
......@@ -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"
)
......
......@@ -5,8 +5,8 @@
package rand
import (
"big"
"io"
"math/big"
"os"
)
......
......@@ -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.
......
......@@ -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"
)
......
......@@ -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)
......
......@@ -5,10 +5,10 @@
package rsa
import (
"big"
"bytes"
"crypto/rand"
"crypto/sha1"
"math/big"
"testing"
)
......
......@@ -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"
)
......
......@@ -5,7 +5,7 @@
package tls
import (
"rand"
"math/rand"
"reflect"
"testing"
"testing/quick"
......
......@@ -5,12 +5,12 @@
package tls
import (
"big"
"bytes"
"crypto/rsa"
"encoding/hex"
"flag"
"io"
"math/big"
"net"
"strconv"
"strings"
......
......@@ -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
......
......@@ -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.
......
......@@ -7,8 +7,8 @@
package pkix
import (
"asn1"
"big"
"encoding/asn1"
"math/big"
"time"
)
......
......@@ -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"
)
......
......@@ -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"
)
......
......@@ -20,8 +20,8 @@ package asn1
// everything by any means.
import (
"big"
"fmt"
"math/big"
"reflect"
"time"
)
......
......@@ -5,10 +5,10 @@
package asn1
import (
"big"
"bytes"
"fmt"
"io"
"math/big"
"reflect"
"time"
)
......
......@@ -9,7 +9,7 @@ import (
"io"
"strings"
"unicode"
"utf8"
"unicode/utf8"
)
// A Writer writes records to a CSV encoded 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"
)
......
......@@ -11,7 +11,7 @@ import (
"reflect"
"sync"
"unicode"
"utf8"
"unicode/utf8"
)
// userTypeInfo stores the information associated with a type the user has handed
......
......@@ -15,8 +15,8 @@ import (
"strconv"
"strings"
"unicode"
"utf16"
"utf8"
"unicode/utf16"
"unicode/utf8"
)
// Unmarshal parses the JSON-encoded data and stores the result
......
......@@ -17,7 +17,7 @@ import (
"sort"
"strconv"
"unicode"
"utf8"
"unicode/utf8"
)
// Marshal returns the JSON encoding of v.
......
......@@ -7,7 +7,7 @@ package json
import (
"bytes"
"math"
"rand"
"math/rand"
"reflect"
"testing"
)
......
......@@ -13,7 +13,7 @@ import (
"strconv"
"strings"
"unicode"
"utf8"
"unicode/utf8"
)
// BUG(rsc): Mapping between XML elements and data structures is inherently flawed:
......
......@@ -21,7 +21,7 @@ import (
"strconv"
"strings"
"unicode"
"utf8"
"unicode/utf8"
)
// A SyntaxError represents a syntax error in the XML input stream.
......
......@@ -25,9 +25,9 @@ package ebnf
import (
"errors"
"fmt"
"scanner"
"text/scanner"
"unicode"
"utf8"
"unicode/utf8"
)
// ----------------------------------------------------------------------------
......
......@@ -6,8 +6,8 @@ package ebnf
import (
"io"
"scanner"
"strconv"
"text/scanner"
)
type parser struct {
......
......@@ -4,7 +4,7 @@
package norm
import "utf8"
import "unicode/utf8"
const (
maxCombiningChars = 30
......
......@@ -4,7 +4,7 @@
package norm
import "utf8"
import "unicode/utf8"
type input interface {
skipASCII(p int) int
......
......@@ -12,9 +12,9 @@ import (
"bytes"
"flag"
"fmt"
"http"
"io"
"log"
"net/http"
"os"
"regexp"
"strconv"
......
......@@ -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:
......
......@@ -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() {
......
......@@ -2,7 +2,7 @@ package norm
import (
"testing"
"utf8"
"unicode/utf8"
)
// Test data is located in triedata_test.go; generated by maketesttables.
......
......@@ -14,7 +14,7 @@ import (
"fmt"
"hash/crc32"
"log"
"utf8"
"unicode/utf8"
)
const blockSize = 64
......
......@@ -7,8 +7,8 @@ package spdy
import (
"compress/zlib"
"encoding/binary"
"http"
"io"
"net/http"
"strings"
)
......
......@@ -6,8 +6,8 @@ package spdy
import (
"bytes"
"http"
"io"
"net/http"
"reflect"
"testing"
)
......
......@@ -7,8 +7,8 @@ package spdy
import (
"bytes"
"compress/zlib"
"http"
"io"
"net/http"
)
// Data Frame Format
......
......@@ -6,8 +6,8 @@ package spdy
import (
"encoding/binary"
"http"
"io"
"net/http"
"strings"
)
......
......@@ -5,12 +5,12 @@
package ssh
import (
"big"
"crypto"
"crypto/rand"
"errors"
"fmt"
"io"
"math/big"
"net"
"sync"
)
......
......@@ -5,7 +5,7 @@
package ssh
import (
"big"
"math/big"
"strconv"
"sync"
)
......
......@@ -5,9 +5,9 @@
package ssh
import (
"big"
"bytes"
"io"
"math/big"
"reflect"
)
......
......@@ -5,8 +5,8 @@
package ssh
import (
"big"
"rand"
"math/big"
"math/rand"
"reflect"
"testing"
"testing/quick"
......
......@@ -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"
)
......
......@@ -7,8 +7,8 @@
package types
import (
"big"
"go/token"
"math/big"
"strconv"
)
......
......@@ -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
......
......@@ -5,9 +5,9 @@
package types
import (
"exec"
"go/ast"
"io/ioutil"
"os/exec"
"path/filepath"
"runtime"
"strings"
......
......@@ -23,10 +23,10 @@ package expvar
import (
"bytes"
"encoding/json"
"fmt"
"http"
"json"
"log"
"net/http"
"os"
"runtime"
"strconv"
......
......@@ -5,7 +5,7 @@
package expvar
import (
"json"
"encoding/json"
"testing"
)
......
......@@ -8,7 +8,7 @@ import (
"bytes"
"strconv"
"unicode"
"utf8"
"unicode/utf8"
)
const (
......
......@@ -12,7 +12,7 @@ import (
"reflect"
"sync"
"unicode"
"utf8"
"unicode/utf8"
)
// Some constants in the form of bytes, to avoid string overhead.
......
......@@ -14,7 +14,7 @@ import (
"strconv"
"strings"
"unicode"
"utf8"
"unicode/utf8"
)
// runeUnreader is the interface to something that can unread runes.
......
......@@ -15,7 +15,7 @@ import (
"regexp"
"strings"
"testing"
"utf8"
"unicode/utf8"
)
type ScanTest struct {
......
......@@ -10,7 +10,7 @@ package ast
import (
"go/token"
"unicode"
"utf8"
"unicode/utf8"
)
// ----------------------------------------------------------------------------
......
......@@ -8,9 +8,9 @@ package build
import (
"bytes"
"errors"
"exec"
"fmt"
"os"
"os/exec"
"path/filepath"
"regexp"
"runtime"
......
......@@ -5,7 +5,7 @@
package build
import (
"exec"
"os/exec"
"path/filepath"
"reflect"
"runtime"
......
......@@ -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' }
......
......@@ -10,7 +10,7 @@ import (
"go/ast"
"strings"
"unicode"
"utf8"
"unicode/utf8"
)
type Example struct {
......
......@@ -13,7 +13,7 @@ import (
"io"
"os"
"path/filepath"
"tabwriter"
"text/tabwriter"
)
const debug = false // enable for debugging
......
......@@ -27,7 +27,7 @@ import (
"path/filepath"
"strconv"
"unicode"
"utf8"
"unicode/utf8"
)
// A Scanner holds the scanner's internal state while processing
......
......@@ -5,7 +5,7 @@
package token
import (
"gob"
"encoding/gob"
"io"
)
......
......@@ -6,7 +6,7 @@ package html
import (
"testing"
"utf8"
"unicode/utf8"
)
func TestEntityLength(t *testing.T) {
......
......@@ -7,7 +7,7 @@ package html
import (
"bytes"
"strings"
"utf8"
"unicode/utf8"
)
// These replacements permit compatibility with old numeric entities that
......
......@@ -10,8 +10,8 @@ import (
"image/color"
"image/png"
"io/ioutil"
"math/rand"
"os"
"rand"
"testing"
)
......
......@@ -6,7 +6,7 @@ package suffixarray
import (
"bytes"
"rand"
"math/rand"
"regexp"
"sort"
"strings"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment