LGTM=rsc R=rsc CC=golang-codereviews https://golang.org/cl/167030043
@@ -108,7 +108,7 @@ type Context interface {
// // Package user defines a User type that's stored in Contexts.
// package user
//
- // import "code.google.com/p/go.net/context"
+ // import "golang.org/x/net/context"
// // User is the type of value stored in the Contexts.
// type User struct {...}
@@ -8,7 +8,7 @@ import (
"fmt"
"time"
- "code.google.com/p/go.net/context"
+ "golang.org/x/net/context"
)
func ExampleWithTimeout() {
@@ -11,10 +11,10 @@ import (
"strings"
"unicode/utf8"
- "code.google.com/p/go.net/html"
- "code.google.com/p/go.text/encoding"
- "code.google.com/p/go.text/encoding/charmap"
- "code.google.com/p/go.text/transform"
+ "golang.org/x/net/html"
+ "golang.org/x/text/encoding"
+ "golang.org/x/text/encoding/charmap"
+ "golang.org/x/text/transform"
// Lookup returns the encoding with the specified label, and its canonical
@@ -6,7 +6,7 @@ import (
"testing"
func transformString(t transform.Transformer, s string) (string, error) {
@@ -48,9 +48,9 @@ func main() {
fmt.Println()
fmt.Println("import (")
- fmt.Println(`"code.google.com/p/go.text/encoding"`)
+ fmt.Println(`"golang.org/x/text/encoding"`)
for _, pkg := range []string{"charmap", "japanese", "korean", "simplifiedchinese", "traditionalchinese", "unicode"} {
- fmt.Printf("\"code.google.com/p/go.text/encoding/%s\"\n", pkg)
+ fmt.Printf("\"golang.org/x/text/encoding/%s\"\n", pkg)
}
fmt.Println(")")
@@ -3,13 +3,13 @@
package charset
import (
- "code.google.com/p/go.text/encoding/japanese"
- "code.google.com/p/go.text/encoding/korean"
- "code.google.com/p/go.text/encoding/simplifiedchinese"
- "code.google.com/p/go.text/encoding/traditionalchinese"
- "code.google.com/p/go.text/encoding/unicode"
+ "golang.org/x/text/encoding/japanese"
+ "golang.org/x/text/encoding/korean"
+ "golang.org/x/text/encoding/simplifiedchinese"
+ "golang.org/x/text/encoding/traditionalchinese"
+ "golang.org/x/text/encoding/unicode"
var encodings = map[string]struct {
@@ -10,7 +10,7 @@ import (
"log"
func ExampleParse() {
@@ -5,7 +5,7 @@
package html
- "code.google.com/p/go.net/html/atom"
+ "golang.org/x/net/html/atom"
// A NodeType is the type of a Node.
"io"
- a "code.google.com/p/go.net/html/atom"
+ a "golang.org/x/net/html/atom"
// A parser implements the HTML5 parsing algorithm:
@@ -18,7 +18,7 @@ import (
// readParseTest reads a single test case from r.
@@ -11,7 +11,7 @@ import (
"strconv"
// A TokenType is the type of a Token.
@@ -7,7 +7,7 @@ package icmp
"net"
- "code.google.com/p/go.net/internal/iana"
+ "golang.org/x/net/internal/iana"
const ipv6PseudoHeaderLen = 2*net.IPv6len + 8
@@ -10,9 +10,9 @@ import (
"errors"
- "code.google.com/p/go.net/ipv4"
- "code.google.com/p/go.net/ipv6"
+ "golang.org/x/net/ipv4"
+ "golang.org/x/net/ipv6"
// A Type represents an ICMP message type.
@@ -9,10 +9,10 @@ import (
"reflect"
- "code.google.com/p/go.net/internal/icmp"
+ "golang.org/x/net/internal/icmp"
var marshalAndParseMessageForIPv4Tests = []icmp.Message{
"syscall"
"unsafe"
func marshalDst(b []byte, cm *ControlMessage) []byte {
func marshalPacketInfo(b []byte, cm *ControlMessage) []byte {
func setControlMessage(fd int, opt *rawOpt, cf ControlFlags, on bool) error {
@@ -8,8 +8,8 @@ import (
func ExampleUnicastTCPListener() {
- "code.google.com/p/go.net/internal/nettest"
+ "golang.org/x/net/internal/nettest"
func TestPacketConnReadWriteMulticastUDP(t *testing.T) {
@@ -10,8 +10,8 @@ import (
"runtime"
var udpMultipleGroupListenerTests = []net.Addr{
var packetConnMulticastSocketOptionTests = []struct {
"os"
func setsockoptIPMreq(fd, name int, ifi *net.Interface, grp net.IP) error {
func setsockoptIPMreq(fd syscall.Handle, name int, ifi *net.Interface, grp net.IP) error {
func getsockoptIPMreqn(fd, name int) (*net.Interface, error) {
func getInt(fd int, opt *sockOpt) (int, error) {
func getInt(fd syscall.Handle, opt *sockOpt) (int, error) {
func benchmarkUDPListener() (net.PacketConn, net.Addr, error) {
func TestConnUnicastSocketOptions(t *testing.T) {
func marshal2292HopLimit(b []byte, cm *ControlMessage) []byte {
func marshalTrafficClass(b []byte, cm *ControlMessage) []byte {
@@ -12,7 +12,7 @@ import (
"sync"
var icmpStringTests = []struct {
@@ -12,10 +12,10 @@ import (
@@ -11,8 +11,8 @@ import (
@@ -11,9 +11,9 @@ import (
var supportsIPv6 bool
type sysSockoptLen int32
const (
func TestPacketConnReadWriteUnicastUDP(t *testing.T) {
@@ -31,7 +31,7 @@ import (
"sort"
- "code.google.com/p/go.net/idna"
+ "golang.org/x/net/idna"
- "code.google.com/p/go.net/websocket"
+ "golang.org/x/net/websocket"
// This example demonstrates a trivial client.
"net/http"
// Echo the data received on the WebSocket.