Skip to content

Commit 9dcf09f

Browse files
authored
Merge pull request #3 from friendsofgo/fix_modules
#2 Fix wrong directory on package gopherapi
2 parents 1e14e5e + ed45eab commit 9dcf09f

File tree

7 files changed

+12
-20
lines changed

7 files changed

+12
-20
lines changed

cmd/gopherapi/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import (
66
"log"
77
"net/http"
88

9-
"github.com/friendsofgo/gopher-api/pkg/storage/inmem"
9+
"github.com/friendsofgo/gopherapi/pkg/storage/inmem"
1010

11-
sample "github.com/friendsofgo/gopher-api/cmd/sample-data"
12-
gopher "github.com/friendsofgo/gopher-api/pkg"
11+
sample "github.com/friendsofgo/gopherapi/cmd/sample-data"
12+
gopher "github.com/friendsofgo/gopherapi/pkg"
1313

14-
"github.com/friendsofgo/gopher-api/pkg/server"
14+
"github.com/friendsofgo/gopherapi/pkg/server"
1515
)
1616

1717
func main() {

cmd/sample-data/data.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package sample
22

33
import (
4-
gopher "github.com/friendsofgo/gopher-api/pkg"
4+
gopher "github.com/friendsofgo/gopherapi/pkg"
55
)
66

77
var Gophers = map[string]*gopher.Gopher{

go.mod

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
module github.com/friendsofgo/gopher-api
1+
module github.com/friendsofgo/gopherapi
22

3-
require (
4-
github.com/aperezg/monster v0.0.0-20190201085025-648ece19f831
5-
github.com/gorilla/mux v1.7.0
6-
)
3+
require github.com/gorilla/mux v1.7.0

go.sum

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
1-
github.com/aperezg/monster v0.0.0-20190201085025-648ece19f831 h1:zcVrTQ22nmJ1+0sp9Lc7OuAMkNqqbEy/3OKXiWB2ods=
2-
github.com/aperezg/monster v0.0.0-20190201085025-648ece19f831/go.mod h1:59SPFI3k23yeORvJqB1py+ZSdAgQKVaPAMZ0ZUWvZyo=
3-
github.com/google/jsonapi v0.0.0-20181016150055-d0428f63eb51/go.mod h1:XSx4m2SziAqk9DXY9nz659easTq4q6TyrpYd9tHSm0g=
41
github.com/gorilla/mux v1.7.0 h1:tOSd0UKHQd6urX6ApfOn4XdBMY6Sh1MfxV3kmaazO+U=
52
github.com/gorilla/mux v1.7.0/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs=
6-
github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4=
7-
github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=

pkg/server/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"encoding/json"
55
"net/http"
66

7-
gopher "github.com/friendsofgo/gopher-api/pkg"
7+
gopher "github.com/friendsofgo/gopherapi/pkg"
88

99
"github.com/gorilla/mux"
1010
)

pkg/server/api_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
"net/http/httptest"
99
"testing"
1010

11-
sample "github.com/friendsofgo/gopher-api/cmd/sample-data"
12-
gopher "github.com/friendsofgo/gopher-api/pkg"
13-
"github.com/friendsofgo/gopher-api/pkg/storage/inmem"
11+
sample "github.com/friendsofgo/gopherapi/cmd/sample-data"
12+
gopher "github.com/friendsofgo/gopherapi/pkg"
13+
"github.com/friendsofgo/gopherapi/pkg/storage/inmem"
1414
)
1515

1616
func TestFetchGophers(t *testing.T) {

pkg/storage/inmem/repository.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"sync"
66

7-
gopher "github.com/friendsofgo/gopher-api/pkg"
7+
gopher "github.com/friendsofgo/gopherapi/pkg"
88
)
99

1010
type gopherRepository struct {

0 commit comments

Comments
 (0)