Skip to content

Commit e195a7f

Browse files
committed
replaced the imports
1 parent ef630ce commit e195a7f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+65
-65
lines changed

.godepcop

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<godepcop>
2-
<!-- Most packages under v.io/x/lib should be free of other dependencies.
2+
<!-- Most packages under github.com/yupeng9/go.lib should be free of other dependencies.
33

4-
NOTE: llog is used in the implementation of v.io/x/lib/vlog, which is
5-
used in other packages under v.io/x/lib. Reimplementing vlog to stand
4+
NOTE: llog is used in the implementation of github.com/yupeng9/go.lib/vlog, which is
5+
used in other packages under github.com/yupeng9/go.lib. Reimplementing vlog to stand
66
alone will allow us to remove this dependency. -->
7-
<pkg allow="v.io/x/lib/..."/>
7+
<pkg allow="github.com/yupeng9/go.lib/..."/>
88
<pkg allow="github.com/cosnicolaou/llog"/>
99
<pkg deny="..."/>
1010

cmd/linewrap/doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ unless it would result in a line with leading or trailing spaces.
2626
Example usage in a unix terminal:
2727
$ cat myfile.txt | linewrap
2828
29-
See http://godoc.org/v.io/x/lib/textutil#WrapWriter for details on the
29+
See http://godoc.org/github.com/yupeng9/go.lib/textutil#WrapWriter for details on the
3030
formatting algorithm.
3131
3232
Usage:

cmd/linewrap/linewrap.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// license that can be found in the LICENSE file.
44

55
// The following enables go generate to generate the doc.go file.
6-
//go:generate go run $JIRI_ROOT/release/go/src/v.io/x/lib/cmdline/testdata/gendoc.go . -h
6+
//go:generate go run $JIRI_ROOT/release/go/src/github.com/yupeng9/go.lib/cmdline/testdata/gendoc.go . -h
77

88
package main
99

@@ -12,8 +12,8 @@ import (
1212
"strconv"
1313
"strings"
1414

15-
"v.io/x/lib/cmdline"
16-
"v.io/x/lib/textutil"
15+
"github.com/yupeng9/go.lib/cmdline"
16+
"github.com/yupeng9/go.lib/textutil"
1717
)
1818

1919
func main() {
@@ -45,7 +45,7 @@ unless it would result in a line with leading or trailing spaces.
4545
Example usage in a unix terminal:
4646
$ cat myfile.txt | linewrap
4747
48-
See http://godoc.org/v.io/x/lib/textutil#WrapWriter for details on the
48+
See http://godoc.org/github.com/yupeng9/go.lib/textutil#WrapWriter for details on the
4949
formatting algorithm.
5050
`,
5151
}

cmdline/cmdline.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ import (
5151
"strings"
5252
"syscall"
5353

54-
"v.io/x/lib/envvar"
55-
_ "v.io/x/lib/metadata" // for the -metadata flag
56-
"v.io/x/lib/timing"
54+
"github.com/yupeng9/go.lib/envvar"
55+
_ "github.com/yupeng9/go.lib/metadata" // for the -metadata flag
56+
"github.com/yupeng9/go.lib/timing"
5757
)
5858

5959
// Command represents a single command in a command-line program. A program

cmdline/cmdline_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"strings"
2020
"testing"
2121

22-
"v.io/x/lib/envvar"
22+
"github.com/yupeng9/go.lib/envvar"
2323
)
2424

2525
var (

cmdline/env.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import (
1010
"os"
1111
"strconv"
1212

13-
"v.io/x/lib/envvar"
14-
"v.io/x/lib/lookpath"
15-
"v.io/x/lib/textutil"
16-
"v.io/x/lib/timing"
13+
"github.com/yupeng9/go.lib/envvar"
14+
"github.com/yupeng9/go.lib/lookpath"
15+
"github.com/yupeng9/go.lib/textutil"
16+
"github.com/yupeng9/go.lib/timing"
1717
)
1818

1919
// EnvFromOS returns a new environment based on the operating system.

cmdline/help.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"unicode"
1717
"unicode/utf8"
1818

19-
"v.io/x/lib/textutil"
19+
"github.com/yupeng9/go.lib/textutil"
2020
)
2121

2222
const missingDescription = "No description available"

cmdline/testdata/exitcode.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
package main
66

7-
import "v.io/x/lib/cmdline"
7+
import "github.com/yupeng9/go.lib/cmdline"
88

99
// cmdExitCode represents the exitcode command.
1010
var cmdExitCode = &cmdline.Command{

cmdline/testdata/flags.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ package main
77
import (
88
"fmt"
99

10-
"v.io/x/lib/cmdline"
10+
"github.com/yupeng9/go.lib/cmdline"
1111
)
1212

1313
// cmdFlags represents the flags command.

cmdline/testdata/flat.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
package main
66

7-
import "v.io/x/lib/cmdline"
7+
import "github.com/yupeng9/go.lib/cmdline"
88

99
// cmdFlat represents the flat command.
1010
var cmdFlat = &cmdline.Command{

cmdline/testdata/nested.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
package main
66

7-
import "v.io/x/lib/cmdline"
7+
import "github.com/yupeng9/go.lib/cmdline"
88

99
// cmdNested represents the nested command.
1010
var cmdNested = &cmdline.Command{

cmdline/testdata/repeated.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
package main
66

7-
import "v.io/x/lib/cmdline"
7+
import "github.com/yupeng9/go.lib/cmdline"
88

99
// cmdRepeated represents the repeated command.
1010
var cmdRepeated = &cmdline.Command{

gosh/cmd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"syscall"
1919
"time"
2020

21-
"v.io/x/lib/lookpath"
21+
"github.com/yupeng9/go.lib/lookpath"
2222
)
2323

2424
var (

gosh/internal/gosh_example/main.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ package main
77
import (
88
"fmt"
99

10-
"v.io/x/lib/gosh"
11-
"v.io/x/lib/gosh/internal/gosh_example_lib"
10+
"github.com/yupeng9/go.lib/gosh"
11+
"github.com/yupeng9/go.lib/gosh/internal/gosh_example_lib"
1212
)
1313

1414
// Mirrors TestCmd in shell_test.go.
@@ -18,14 +18,14 @@ func ExampleCmd() {
1818

1919
// Start server.
2020
binDir := sh.MakeTempDir()
21-
binPath := gosh.BuildGoPkg(sh, binDir, "v.io/x/lib/gosh/internal/gosh_example_server")
21+
binPath := gosh.BuildGoPkg(sh, binDir, "github.com/yupeng9/go.lib/gosh/internal/gosh_example_server")
2222
c := sh.Cmd(binPath)
2323
c.Start()
2424
addr := c.AwaitVars("addr")["addr"]
2525
fmt.Println(addr)
2626

2727
// Run client.
28-
binPath = gosh.BuildGoPkg(sh, binDir, "v.io/x/lib/gosh/internal/gosh_example_client")
28+
binPath = gosh.BuildGoPkg(sh, binDir, "github.com/yupeng9/go.lib/gosh/internal/gosh_example_client")
2929
c = sh.Cmd(binPath, "-addr="+addr)
3030
fmt.Print(c.Stdout())
3131
}

gosh/internal/gosh_example_client/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ package main
77
import (
88
"flag"
99

10-
"v.io/x/lib/gosh"
11-
"v.io/x/lib/gosh/internal/gosh_example_lib"
10+
"github.com/yupeng9/go.lib/gosh"
11+
"github.com/yupeng9/go.lib/gosh/internal/gosh_example_lib"
1212
)
1313

1414
var addr = flag.String("addr", "localhost:8080", "server addr")

gosh/internal/gosh_example_lib/lib.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"net/http"
1313
"time"
1414

15-
"v.io/x/lib/gosh"
15+
"github.com/yupeng9/go.lib/gosh"
1616
)
1717

1818
func Get(addr string) {

gosh/internal/gosh_example_server/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
package main
66

77
import (
8-
"v.io/x/lib/gosh"
9-
"v.io/x/lib/gosh/internal/gosh_example_lib"
8+
"github.com/yupeng9/go.lib/gosh"
9+
"github.com/yupeng9/go.lib/gosh/internal/gosh_example_lib"
1010
)
1111

1212
func main() {

gosh/internal/hello_world/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ package main
77
import (
88
"fmt"
99

10-
"v.io/x/lib/gosh"
10+
"github.com/yupeng9/go.lib/gosh"
1111
)
1212

1313
func main() {

gosh/pipeline_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"testing"
1111
"time"
1212

13-
"v.io/x/lib/gosh"
13+
"github.com/yupeng9/go.lib/gosh"
1414
)
1515

1616
func TestPipeline(t *testing.T) {

gosh/shell_test.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ import (
3030
"testing"
3131
"time"
3232

33-
"v.io/x/lib/gosh"
34-
lib "v.io/x/lib/gosh/internal/gosh_example_lib"
33+
"github.com/yupeng9/go.lib/gosh"
34+
lib "github.com/yupeng9/go.lib/gosh/internal/gosh_example_lib"
3535
)
3636

3737
var fakeError = errors.New("fake error")
@@ -447,7 +447,7 @@ func TestHandleErrorLogging(t *testing.T) {
447447
// Cmd tests
448448

449449
const (
450-
helloWorldPkg = "v.io/x/lib/gosh/internal/hello_world"
450+
helloWorldPkg = "github.com/yupeng9/go.lib/gosh/internal/hello_world"
451451
helloWorldStr = "Hello, world!\n"
452452
)
453453

@@ -458,14 +458,14 @@ func TestCmd(t *testing.T) {
458458

459459
// Start server.
460460
binDir := sh.MakeTempDir()
461-
binPath := gosh.BuildGoPkg(sh, binDir, "v.io/x/lib/gosh/internal/gosh_example_server")
461+
binPath := gosh.BuildGoPkg(sh, binDir, "github.com/yupeng9/go.lib/gosh/internal/gosh_example_server")
462462
c := sh.Cmd(binPath)
463463
c.Start()
464464
addr := c.AwaitVars("addr")["addr"]
465465
neq(t, addr, "")
466466

467467
// Run client.
468-
binPath = gosh.BuildGoPkg(sh, binDir, "v.io/x/lib/gosh/internal/gosh_example_client")
468+
binPath = gosh.BuildGoPkg(sh, binDir, "github.com/yupeng9/go.lib/gosh/internal/gosh_example_client")
469469
c = sh.Cmd(binPath, "-addr="+addr)
470470
eq(t, c.Stdout(), helloWorldStr)
471471
}

lookpath/lookpath_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"strings"
1515
"testing"
1616

17-
"v.io/x/lib/lookpath"
17+
"github.com/yupeng9/go.lib/lookpath"
1818
)
1919

2020
func mkdir(t *testing.T, d ...string) string {

metadata/metadata.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// an init function to accomplish this:
3030
//
3131
// package mypkg
32-
// import "v.io/x/lib/metadata"
32+
// import "github.com/yupeng9/go.lib/metadata"
3333
//
3434
// func init() {
3535
// metadata.Insert("myproject.myid", "value")

metadata/testdata/testbin.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ package main
88
import (
99
"flag"
1010

11-
_ "v.io/x/lib/metadata"
11+
_ "github.com/yupeng9/go.lib/metadata"
1212
)
1313

1414
func main() {

netconfig/example_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"fmt"
99
"log"
1010

11-
"v.io/x/lib/netconfig"
11+
"github.com/yupeng9/go.lib/netconfig"
1212
)
1313

1414
func ExampleNetConfigWatcher() {

netconfig/ipaux_bsd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"net"
1919
"syscall"
2020

21-
"v.io/x/lib/vlog"
21+
"github.com/yupeng9/go.lib/vlog"
2222
)
2323

2424
/*

netconfig/ipaux_linux.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"syscall"
1818
"unsafe"
1919

20-
"v.io/x/lib/vlog"
20+
"github.com/yupeng9/go.lib/vlog"
2121
)
2222

2323
/*

netstate/chooser_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"net"
1010
"testing"
1111

12-
"v.io/x/lib/netstate"
12+
"github.com/yupeng9/go.lib/netstate"
1313
)
1414

1515
func TestChooser(t *testing.T) {

netstate/netstate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ import (
6666
"strings"
6767
"sync"
6868

69-
"v.io/x/lib/netconfig"
69+
"github.com/yupeng9/go.lib/netconfig"
7070
)
7171

7272
var (

netstate/netstate_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"reflect"
1111
"testing"
1212

13-
"v.io/x/lib/netstate"
13+
"github.com/yupeng9/go.lib/netstate"
1414
)
1515

1616
func TestGet(t *testing.T) {

netstate/route.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"fmt"
99
"strings"
1010

11-
"v.io/x/lib/netconfig"
11+
"github.com/yupeng9/go.lib/netconfig"
1212
)
1313

1414
// IPRouteList is a slice of IPRoutes as returned by the netconfig package.

netstate/route_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"strings"
1111
"testing"
1212

13-
"v.io/x/lib/netconfig"
14-
"v.io/x/lib/netstate"
13+
"github.com/yupeng9/go.lib/netconfig"
14+
"github.com/yupeng9/go.lib/netstate"
1515
)
1616

1717
func TestInterfaces(t *testing.T) {

netstate/testdata_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ package netstate_test
77
import (
88
"net"
99

10-
"v.io/x/lib/netconfig"
11-
"v.io/x/lib/netstate"
10+
"github.com/yupeng9/go.lib/netconfig"
11+
"github.com/yupeng9/go.lib/netstate"
1212
)
1313

1414
func mockInterfacesAndRouteTable() ([]net.IP, []netstate.NetworkInterface, netstate.RouteTable) {

netstate/util_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
package netstate
66

77
import (
8-
"v.io/x/lib/netconfig"
8+
"github.com/yupeng9/go.lib/netconfig"
99
)
1010

1111
import "net"

nsync/cv_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ package nsync_test
77
import "testing"
88
import "time"
99

10-
import "v.io/x/lib/nsync"
10+
import "github.com/yupeng9/go.lib/nsync"
1111

1212
// ---------------------------
1313

0 commit comments

Comments
 (0)