Skip to content

Commit

Permalink
docs: update go version in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Fellows committed Oct 18, 2019
1 parent dda1b80 commit f97b6bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ See below for how to automate this:

### Go get

Since `1.x.x` Pact is go-gettable, and uses tags for versioning, so `dep ensure --add github.com/pact-foundation/pact-go@1.0.0-beta` or `go get gopkg.in/pact-foundation/pact-go.v1` is now possible.
Since `1.x.x` Pact is go-gettable, and uses tags for versioning, so `dep ensure --add github.com/pact-foundation/pact-go@1.0.0` or `go get gopkg.in/pact-foundation/pact-go.v1` is now possible.

See the [Changelog] for versions to pin to and their history.

Expand All @@ -123,7 +123,7 @@ The following will install pact binaries into `/opt/pact/bin`:
cd /opt
curl -fsSL https://raw.githubusercontent.com/pact-foundation/pact-ruby-standalone/master/install.sh | bash
export PATH=$PATH:/opt/pact/bin
go get -d github.com/pact-foundation/pact-go
go get github.com/pact-foundation/pact-go@v1
```

Test the installation:
Expand Down
8 changes: 5 additions & 3 deletions examples/gin/provider/cmd/usersvc/main.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package main

import "github.com/gin-gonic/gin"
import "github.com/pact-foundation/pact-go/examples/gin/provider"
import (
"github.com/gin-gonic/gin"
"github.com/pact-foundation/pact-go/examples/gin/provider"
)

func main() {
router := gin.Default()
router.POST("/login/:id", provider.UserLogin)
router.POST("/users/:id", provider.IsAuthenticated(provider.GetUser))
router.POST("/users/:id", provider.IsAuthenticated(), provider.GetUser)
router.Run("localhost:8080")
}

0 comments on commit f97b6bd

Please sign in to comment.