Skip to content

Commit 6d7499c

Browse files
committed
[DEVOPS-3384] Change paths to github.com/elasticpath
1 parent 703ec99 commit 6d7499c

13 files changed

+25
-25
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
#### expecting it in the form of
1818
#### /go/src/github.com/circleci/go-tool
1919
#### /go/src/bitbucket.org/circleci/go-tool
20-
working_directory: /go/src/github.com/moltin/jsonapi
20+
working_directory: /go/src/github.com/elasticpath/jsonapi
2121
steps:
2222
- checkout
2323

README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A serializer/deserializer for JSON payloads that comply to the
1313
## Installation
1414

1515
```
16-
go get -u github.com/moltin/jsonapi
16+
go get -u github.com/elasticpath/jsonapi
1717
```
1818

1919
Or, see [Alternative Installation](#alternative-installation).
@@ -77,7 +77,7 @@ all of your data easily.
7777

7878
## Example App
7979

80-
[examples/app.go](https://github.com/moltin/jsonapi/blob/master/examples/app.go)
80+
[examples/app.go](https://github.com/elasticpath/jsonapi/blob/master/examples/app.go)
8181

8282
This program demonstrates the implementation of a create, a show,
8383
and a list [http.Handler](http://golang.org/pkg/net/http#Handler). It
@@ -91,9 +91,9 @@ To run,
9191
* Make sure you have [Go installed](https://golang.org/doc/install)
9292
* Create the following directories or similar: `~/go`
9393
* Set `GOPATH` to `PWD` in your shell session, `export GOPATH=$PWD`
94-
* `go get github.com/moltin/jsonapi`. (Append `-u` after `get` if you
94+
* `go get github.com/elasticpath/jsonapi`. (Append `-u` after `get` if you
9595
are updating.)
96-
* `cd $GOPATH/src/github.com/moltin/jsonapi/examples`
96+
* `cd $GOPATH/src/github.com/elasticpath/jsonapi/examples`
9797
* `go build && ./examples`
9898

9999
## `jsonapi` Tag Reference
@@ -198,7 +198,7 @@ about the rest?
198198
### Create Record Example
199199

200200
You can Unmarshal a JSON API payload using
201-
[jsonapi.UnmarshalPayload](http://godoc.org/github.com/moltin/jsonapi#UnmarshalPayload).
201+
[jsonapi.UnmarshalPayload](http://godoc.org/github.com/elasticpath/jsonapi#UnmarshalPayload).
202202
It reads from an [io.Reader](https://golang.org/pkg/io/#Reader)
203203
containing a JSON API payload for one record (but can have related
204204
records). Then, it materializes a struct that you created and passed in
@@ -207,7 +207,7 @@ the top level, in request payloads at the moment. Bulk creates and
207207
updates are not supported yet.
208208

209209
After saving your record, you can use,
210-
[MarshalOnePayload](http://godoc.org/github.com/moltin/jsonapi#MarshalOnePayload),
210+
[MarshalOnePayload](http://godoc.org/github.com/elasticpath/jsonapi#MarshalOnePayload),
211211
to write the JSON API response to an
212212
[io.Writer](https://golang.org/pkg/io/#Writer).
213213

@@ -217,15 +217,15 @@ to write the JSON API response to an
217217
UnmarshalPayload(in io.Reader, model interface{})
218218
```
219219

220-
Visit [godoc](http://godoc.org/github.com/moltin/jsonapi#UnmarshalPayload)
220+
Visit [godoc](http://godoc.org/github.com/elasticpath/jsonapi#UnmarshalPayload)
221221

222222
#### `MarshalPayload`
223223

224224
```go
225225
MarshalPayload(w io.Writer, models interface{}) error
226226
```
227227

228-
Visit [godoc](http://godoc.org/github.com/moltin/jsonapi#MarshalPayload)
228+
Visit [godoc](http://godoc.org/github.com/elasticpath/jsonapi#MarshalPayload)
229229

230230
Writes a JSON API response, with related records sideloaded, into an
231231
`included` array. This method encodes a response for either a single record or
@@ -261,7 +261,7 @@ func CreateBlog(w http.ResponseWriter, r *http.Request) {
261261
UnmarshalManyPayload(in io.Reader, t reflect.Type) ([]interface{}, error)
262262
```
263263

264-
Visit [godoc](http://godoc.org/github.com/moltin/jsonapi#UnmarshalManyPayload)
264+
Visit [godoc](http://godoc.org/github.com/elasticpath/jsonapi#UnmarshalManyPayload)
265265

266266
Takes an `io.Reader` and a `reflect.Type` representing the uniform type
267267
contained within the `"data"` JSON API member.
@@ -427,7 +427,7 @@ if err := validate(&myStructToValidate); err != nil {
427427
MarshalOnePayloadEmbedded(w io.Writer, model interface{}) error
428428
```
429429

430-
Visit [godoc](http://godoc.org/github.com/moltin/jsonapi#MarshalOnePayloadEmbedded)
430+
Visit [godoc](http://godoc.org/github.com/elasticpath/jsonapi#MarshalOnePayloadEmbedded)
431431

432432
This method is not strictly meant to for use in implementation code,
433433
although feel free. It was mainly created for use in tests; in most cases,
@@ -467,13 +467,13 @@ I use git subtrees to manage dependencies rather than `go get` so that
467467
the src is committed to my repo.
468468

469469
```
470-
git subtree add --squash --prefix=src/github.com/moltin/jsonapi https://github.com/moltin/jsonapi.git master
470+
git subtree add --squash --prefix=src/github.com/elasticpath/jsonapi https://github.com/elasticpath/jsonapi.git master
471471
```
472472

473473
To update,
474474

475475
```
476-
git subtree pull --squash --prefix=src/github.com/moltin/jsonapi https://github.com/moltin/jsonapi.git master
476+
git subtree pull --squash --prefix=src/github.com/elasticpath/jsonapi https://github.com/elasticpath/jsonapi.git master
477477
```
478478

479479
This assumes that I have my repo structured with a `src` dir containing

doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ the key in the "relationships" hash for the record.
6565
6666
Use the methods below to Marshal and Unmarshal jsonapi.org json payloads.
6767
68-
Visit the readme at https://github.com/moltin/jsonapi
68+
Visit the readme at https://github.com/elasticpath/jsonapi
6969
*/
7070
package jsonapi

errors_test.go

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

11-
"github.com/moltin/jsonapi"
11+
"github.com/elasticpath/jsonapi"
1212
)
1313

1414
func TestErrorObjectWritesExpectedErrorMessage(t *testing.T) {

examples/app.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"net/http/httptest"
1111
"time"
1212

13-
"github.com/moltin/jsonapi"
13+
"github.com/elasticpath/jsonapi"
1414
)
1515

1616
func main() {

examples/handler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"net/http"
55
"strconv"
66

7-
"github.com/moltin/jsonapi"
7+
"github.com/elasticpath/jsonapi"
88
)
99

1010
const (

examples/handler_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"net/http/httptest"
77
"testing"
88

9-
"github.com/moltin/jsonapi"
9+
"github.com/elasticpath/jsonapi"
1010
)
1111

1212
func TestExampleHandler_post(t *testing.T) {

examples/models.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"time"
66

7-
"github.com/moltin/jsonapi"
7+
"github.com/elasticpath/jsonapi"
88
)
99

1010
// Blog is a model representing a blog site

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/moltin/jsonapi
1+
module github.com/elasticpath/jsonapi
22

33
go 1.16
44

models_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"time"
66

7-
"github.com/moltin/jsonapi"
7+
"github.com/elasticpath/jsonapi"
88
)
99

1010
type BadModel struct {

request.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func newErrUnsupportedPtrType(rf reflect.Value, t reflect.Type, structField refl
8686
// }
8787
//
8888
//
89-
// Visit https://github.com/moltin/jsonapi#create for more info.
89+
// Visit https://github.com/elasticpath/jsonapi#create for more info.
9090
//
9191
// model interface{} should be a pointer to a struct.
9292
func UnmarshalPayload(in io.Reader, model interface{}) error {

request_test.go

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

13-
"github.com/moltin/jsonapi"
13+
"github.com/elasticpath/jsonapi"
1414
)
1515

1616
func unmarshalSamplePayload() (*Blog, error) {

response_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
"github.com/stretchr/testify/assert"
1212

13-
"github.com/moltin/jsonapi"
13+
"github.com/elasticpath/jsonapi"
1414
)
1515

1616
func TestMarshalPayload(t *testing.T) {
@@ -331,7 +331,7 @@ func TestMarshalOnePayload_omitIDString(t *testing.T) {
331331
payload := jsonData["data"].(map[string]interface{})
332332

333333
// Verify that empty ID of type string gets omitted. See:
334-
// https://github.com/moltin/jsonapi/issues/83#issuecomment-285611425
334+
// https://github.com/elasticpath/jsonapi/issues/83#issuecomment-285611425
335335
_, ok := payload["id"]
336336
if ok {
337337
t.Fatal("Was expecting the data.id member to be omitted")

0 commit comments

Comments
 (0)