Skip to content

Commit

Permalink
changed all imports to be go gettable
Browse files Browse the repository at this point in the history
  • Loading branch information
zond committed Dec 21, 2012
1 parent c847745 commit 4e6dff9
Show file tree
Hide file tree
Showing 32 changed files with 59 additions and 59 deletions.
6 changes: 3 additions & 3 deletions cli/cli.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package main

import (
"../client"
"../common"
"../setop"
"bufio"
"encoding/hex"
"flag"
"fmt"
"github.com/zond/god/client"
"github.com/zond/god/common"
"github.com/zond/god/setop"
"io"
"math/big"
"os"
Expand Down
4 changes: 2 additions & 2 deletions client/client.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package client

import (
"../common"
"../setop"
"bytes"
"fmt"
"github.com/zond/god/common"
"github.com/zond/god/setop"
"net/rpc"
"sync"
"sync/atomic"
Expand Down
2 changes: 1 addition & 1 deletion common/ring.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package common

import (
"../murmur"
"bytes"
"fmt"
"github.com/zond/god/murmur"
"math/big"
"math/rand"
"sort"
Expand Down
6 changes: 3 additions & 3 deletions dhash/api_functions.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package dhash

import (
"../client"
"../common"
"../setop"
"bytes"
"fmt"
"github.com/zond/god/client"
"github.com/zond/god/common"
"github.com/zond/god/setop"
"sync/atomic"
"time"
)
Expand Down
8 changes: 4 additions & 4 deletions dhash/client_test.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package dhash

import (
"../client"
"../common"
"../murmur"
"../setop"
"bytes"
"fmt"
"github.com/zond/god/client"
"github.com/zond/god/common"
"github.com/zond/god/murmur"
"github.com/zond/god/setop"
"math/big"
"net"
"runtime"
Expand Down
10 changes: 5 additions & 5 deletions dhash/dhash.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package dhash

import (
"../common"
"../discord"
"../murmur"
"../radix"
"../timenet"
"bytes"
"fmt"
"github.com/zond/god/common"
"github.com/zond/god/discord"
"github.com/zond/god/murmur"
"github.com/zond/god/radix"
"github.com/zond/god/timenet"
"sync"
"sync/atomic"
"time"
Expand Down
2 changes: 1 addition & 1 deletion dhash/dhash_peer_producer.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package dhash

import (
"../timenet"
"github.com/zond/god/timenet"
)

type dhashPeerProducer Node
Expand Down
4 changes: 2 additions & 2 deletions dhash/dhash_server.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package dhash

import (
"../common"
"../setop"
"github.com/zond/god/common"
"github.com/zond/god/setop"
)

type dhashServer Node
Expand Down
2 changes: 1 addition & 1 deletion dhash/dhash_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package dhash

import (
"../common"
"bytes"
"fmt"
"github.com/zond/god/common"
"os"
"runtime"
"sort"
Expand Down
4 changes: 2 additions & 2 deletions dhash/hash_tree_server.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package dhash

import (
"../common"
"../radix"
"github.com/zond/god/common"
"github.com/zond/god/radix"
"sync/atomic"
"time"
)
Expand Down
4 changes: 2 additions & 2 deletions dhash/json_client.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package dhash

import (
"../common"
"../setop"
"bytes"
"encoding/json"
"fmt"
"github.com/zond/god/common"
"github.com/zond/god/setop"
"net/http"
)

Expand Down
4 changes: 2 additions & 2 deletions dhash/json_dhash_server.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package dhash

import (
"../common"
"../setop"
"github.com/zond/god/common"
"github.com/zond/god/setop"
)

type jsonDhashServer Node
Expand Down
4 changes: 2 additions & 2 deletions dhash/json_server.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package dhash

import (
"../common"
"../web"
"bytes"
"code.google.com/p/go.net/websocket"
"encoding/json"
"fmt"
"github.com/gorilla/mux"
"github.com/zond/god/common"
"github.com/zond/god/web"
"io"
"net"
"net/http"
Expand Down
6 changes: 3 additions & 3 deletions dhash/profile/profile.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package main

import (
. "../"
"../../common"
"../../murmur"
"fmt"
. "github.com/zond/god/"
"github.com/zond/god/../common"
"github.com/zond/god/../murmur"
"os"
"runtime/pprof"
)
Expand Down
4 changes: 2 additions & 2 deletions dhash/remote_hash_tree.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package dhash

import (
"../common"
"../radix"
"github.com/zond/god/common"
"github.com/zond/god/radix"
)

type remoteHashTree struct {
Expand Down
2 changes: 1 addition & 1 deletion dhash/remote_peer.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package dhash

import (
"../common"
"github.com/zond/god/common"
"time"
)

Expand Down
6 changes: 3 additions & 3 deletions dhash/set_ops.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package dhash

import (
"../common"
"../radix"
"../setop"
"bytes"
"github.com/zond/god/common"
"github.com/zond/god/radix"
"github.com/zond/god/setop"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion dhash/time_server.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package dhash

import (
"../timenet"
"github.com/zond/god/timenet"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion discord/discord_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package discord

import (
"../common"
"fmt"
"github.com/zond/god/common"
"testing"
"time"
)
Expand Down
4 changes: 2 additions & 2 deletions discord/node.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package discord

import (
"../common"
"../murmur"
"bytes"
"fmt"
"github.com/zond/god/common"
"github.com/zond/god/murmur"
"net"
"net/rpc"
"sync"
Expand Down
2 changes: 1 addition & 1 deletion discord/node_server.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package discord

import (
"../common"
"github.com/zond/god/common"
)

type nodeServer Node
Expand Down
2 changes: 1 addition & 1 deletion radix/asserts.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package radix

import (
"../common"
"github.com/zond/god/common"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion radix/node.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package radix

import (
"../murmur"
"bytes"
"encoding/hex"
"fmt"
"github.com/zond/god/murmur"
"strings"
"time"
)
Expand Down
4 changes: 2 additions & 2 deletions radix/profile/profile.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package main

import (
. "../"
"../../murmur"
"bytes"
"fmt"
. "github.com/zond/god/"
"github.com/zond/god/../murmur"
"os"
"runtime/pprof"
)
Expand Down
4 changes: 2 additions & 2 deletions radix/radix_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package radix

import (
"../common"
"../murmur"
"bytes"
"encoding/hex"
"fmt"
"github.com/zond/god/common"
"github.com/zond/god/murmur"
"math/rand"
"reflect"
"runtime"
Expand Down
2 changes: 1 addition & 1 deletion radix/sync.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package radix

import (
"../common"
"bytes"
"github.com/zond/god/common"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions radix/tree.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package radix

import (
"../murmur"
"../persistence"
"bytes"
"encoding/hex"
"fmt"
"github.com/zond/god/murmur"
"github.com/zond/god/persistence"
"math/big"
"sync"
"sync/atomic"
Expand Down
4 changes: 2 additions & 2 deletions server/server.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package main

import (
"../common"
"../dhash"
"flag"
"fmt"
"github.com/zond/god/common"
"github.com/zond/god/dhash"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion setop/merges.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package setop

import (
"../common"
"bytes"
"encoding/binary"
"fmt"
"github.com/zond/god/common"
"math/big"
)

Expand Down
2 changes: 1 addition & 1 deletion setop/set_op_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package setop

import (
"../common"
"bytes"
"fmt"
"github.com/zond/god/common"
"math/big"
"reflect"
"sort"
Expand Down
2 changes: 1 addition & 1 deletion timenet/timenet_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package timenet

import (
"../common"
"fmt"
"github.com/zond/god/common"
"math"
"math/rand"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion web/web.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package web

import (
"../templates"
"code.google.com/p/go.net/websocket"
"fmt"
"github.com/gorilla/mux"
"github.com/zond/god/templates"
htmlTemplate "html/template"
"net/http"
textTemplate "text/template"
Expand Down

0 comments on commit 4e6dff9

Please sign in to comment.