Skip to content

Commit

Permalink
refactor(examples): use new import path
Browse files Browse the repository at this point in the history
  • Loading branch information
h2non committed Oct 19, 2022
1 parent 1ea998b commit c233b59
Show file tree
Hide file tree
Showing 26 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion _examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ go get -u github.com/nbio/st
```

```bash
go get -u gopkg.in/h2non/gock.v1
go get -u github.com/h2non/gock
```

### Usage
Expand Down
2 changes: 1 addition & 1 deletion _examples/add_matchers/matchers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"net/http"

"gopkg.in/h2non/gock.v1"
"github.com/h2non/gock"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion _examples/basic/basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package test

import (
"github.com/nbio/st"
"gopkg.in/h2non/gock.v1"
"github.com/h2non/gock"
"io/ioutil"
"net/http"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion _examples/body_file/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package test
import (
"bytes"
"github.com/nbio/st"
"gopkg.in/h2non/gock.v1"
"github.com/h2non/gock"
"io/ioutil"
"net/http"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion _examples/body_match/body_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package test
import (
"bytes"
"github.com/nbio/st"
"gopkg.in/h2non/gock.v1"
"github.com/h2non/gock"
"io/ioutil"
"net/http"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion _examples/cannot_match/cannot_match.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"net/http"

"gopkg.in/h2non/gock.v1"
"github.com/h2non/gock"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion _examples/clean/clean.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"gopkg.in/h2non/gock.v1"
"github.com/h2non/gock"
"net/http"
)

Expand Down
2 changes: 1 addition & 1 deletion _examples/compressed_body/compression_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"compress/gzip"
"github.com/nbio/st"
"gopkg.in/h2non/gock.v1"
"github.com/h2non/gock"
"io/ioutil"
"net/http"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion _examples/custom_client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package test

import (
"github.com/nbio/st"
"gopkg.in/h2non/gock.v1"
"github.com/h2non/gock"
"io/ioutil"
"net/http"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion _examples/custom_matcher/matcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"gopkg.in/h2non/gock.v1"
"github.com/h2non/gock"
"net/http"
)

Expand Down
2 changes: 1 addition & 1 deletion _examples/filters/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"gopkg.in/h2non/gock.v1"
"github.com/h2non/gock"
"net/http"
)

Expand Down
2 changes: 1 addition & 1 deletion _examples/gentleman/gentleman.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"gopkg.in/h2non/gentleman.v1"
"gopkg.in/h2non/gentleman.v1/context"
"gopkg.in/h2non/gock.v1"
"github.com/h2non/gock"
)

// Usege example with gentleman HTTP client toolkit.
Expand Down
2 changes: 1 addition & 1 deletion _examples/mapper/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"gopkg.in/h2non/gock.v1"
"github.com/h2non/gock"
"net/http"
)

Expand Down
2 changes: 1 addition & 1 deletion _examples/match_headers/headers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"

"github.com/nbio/st"
"gopkg.in/h2non/gock.v1"
"github.com/h2non/gock"
)

func TestMatchHeaders(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion _examples/match_query/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package test

import (
"github.com/nbio/st"
"gopkg.in/h2non/gock.v1"
"github.com/h2non/gock"
"io/ioutil"
"net/http"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion _examples/match_url/url_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package test

import (
"github.com/nbio/st"
"gopkg.in/h2non/gock.v1"
"github.com/h2non/gock"
"io/ioutil"
"net/http"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion _examples/multiple/multiple_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package test

import (
"github.com/nbio/st"
"gopkg.in/h2non/gock.v1"
"github.com/h2non/gock"
"io/ioutil"
"net/http"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion _examples/networking/networking.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io/ioutil"
"net/http"

"gopkg.in/h2non/gock.v1"
"github.com/h2non/gock"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion _examples/networking_filters/filters.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io/ioutil"
"net/http"

"gopkg.in/h2non/gock.v1"
"github.com/h2non/gock"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion _examples/networking_partially_enabled/networking.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"net/http"
"net/http/httptest"

"gopkg.in/h2non/gock.v1"
"github.com/h2non/gock"
)

// Starts a local HTTP server in background
Expand Down
2 changes: 1 addition & 1 deletion _examples/observe/observe.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"bytes"
"gopkg.in/h2non/gock.v1"
"github.com/h2non/gock"
"net/http"
)

Expand Down
2 changes: 1 addition & 1 deletion _examples/pending/pending.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"gopkg.in/h2non/gock.v1"
"github.com/h2non/gock"
"net/http"
)

Expand Down
2 changes: 1 addition & 1 deletion _examples/persistent/persistent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package test

import (
"github.com/nbio/st"
"gopkg.in/h2non/gock.v1"
"github.com/h2non/gock"
"io/ioutil"
"net/http"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion _examples/persistent/times_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package test

import (
"github.com/nbio/st"
"gopkg.in/h2non/gock.v1"
"github.com/h2non/gock"
"io/ioutil"
"net/http"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion _examples/regexp_matching/regexp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package test
import (
"bytes"
"github.com/nbio/st"
"gopkg.in/h2non/gock.v1"
"github.com/h2non/gock"
"io/ioutil"
"net/http"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion _examples/reply_error/reply_error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"

"github.com/nbio/st"
"gopkg.in/h2non/gock.v1"
"github.com/h2non/gock"
)

func TestReplyError(t *testing.T) {
Expand Down

0 comments on commit c233b59

Please sign in to comment.