Skip to content

Commit e4f69fe

Browse files
author
Github Action
committed
chore: synced pact-go docs
1 parent 4182794 commit e4f69fe

File tree

4 files changed

+24
-8
lines changed

4 files changed

+24
-8
lines changed

website/docs/implementation_guides/go/docs/consumer.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Here is a sequence diagram that shows how a consumer test works:
4040

4141
### Example
4242

43-
```go
43+
```golang
4444
func TestProductAPIClient(t *testing.T) {
4545
// Specify the two applications in the integration we are testing
4646
// NOTE: this can usually be extracted out of the individual test for re-use)

website/docs/implementation_guides/go/docs/messages.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ A Provider (Producer in messaging parlance) is the system that will be putting a
112112

113113
As per the Consumer case, Pact takes the position of the intermediary (MQ/broker) and checks to see whether or not the Provider sends a message that matches the Consumer's expectations.
114114

115-
```go
115+
```golang
116116
func TestV3MessageProvider(t *testing.T) {
117117
var user *User
118118

website/docs/implementation_guides/go/docs/provider.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The provider interface is in the package: `github.com/pact-foundation/pact-go/v2
3030

3131
A provider test takes one or more pact files (contracts) as input, and Pact verifies that your provider adheres to the contract. In the simplest case, you can verify a provider as per below.
3232

33-
```go
33+
```golang
3434
func TestV3HTTPProvider(t *testing.T) {
3535
// 1. Start your Provider API in the background
3636
go startServer()
@@ -149,7 +149,7 @@ In most cases, you will want to use a [Pact Broker](https://docs.pact.io/pact_br
149149

150150
The first part of the configuration is to tell Pact how to connect to your broker:
151151

152-
```go
152+
```golang
153153
Provider: "V3Provider",
154154
ProviderVersion: os.Getenv("APP_SHA"),
155155
BrokerURL: os.Getenv("PACT_BROKER_BASE_URL"),
@@ -161,7 +161,7 @@ The provider name uniquely identifies the application and automatically discover
161161

162162
Once connected to the broker, you need to configure which pacts you care about verifying. Consumer version selectors are how we do this. For example, in the following setup we collect all contracts where the tag is `master` or `prod`:
163163

164-
```go
164+
```golang
165165
ConsumerVersionSelectors: []Selector{
166166
&ConsumerVersionSelector{
167167
Tag: "master",
@@ -221,7 +221,7 @@ The plugin provider interface is in the package: `github.com/pact-foundation/pac
221221

222222
A provider test takes one or more pact files (contracts) as input, and Pact verifies that your provider adheres to the contract. In the simplest case, you can verify a provider as per below.
223223

224-
```go
224+
```golang
225225
func TestPluginProvider(t *testing.T) {
226226
// 1. Start your Provider API in the background
227227
go startServer()

website/docs/implementation_guides/go/readme.md

+18-2
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ In this example, we are going to be testing our User API client, responsible for
193193

194194
Pact tests have a few key properties. We'll demonstrate a common example using the 3A `Arrange/Act/Assert` pattern.
195195

196-
```go
196+
```golang
197197
func TestUserAPIClient(t *testing.T) {
198198
// Specify the two applications in the integration we are testing
199199
// NOTE: this can usually be extracted out of the individual test for re-use)
@@ -245,7 +245,7 @@ The provider interface is in the package: `github.com/pact-foundation/pact-go/v2
245245

246246
A provider test takes one or more pact files (contracts) as input, and Pact verifies that your provider adheres to the contract. In the simplest case, you can verify a provider as per below.
247247

248-
```go
248+
```golang
249249
func TestV3HTTPProvider(t *testing.T) {
250250
// 1. Start your Provider API in the background
251251
go startServer()
@@ -283,6 +283,22 @@ _\*_ v3 support is limited to the subset of functionality required to enable lan
283283

284284
</details>
285285

286+
<details><summary>Supported Platforms</summary>
287+
288+
| OS | Architecture | Supported | Pact-Go Version |
289+
| ------------- | ------------ | --------- | ---------------- |
290+
| MacOS | x86_64 || All |
291+
| MacOS | arm64 || All |
292+
| Linux (libc) | x86_64 || All |
293+
| Linux (libc) | arm64 || All |
294+
| Linux (musl) | x86_64 || - |
295+
| Linux (musl) | arm64 || - |
296+
| Windows | x86_64 || All |
297+
| Windows | x86 || - |
298+
| Windows | arm64 || - |
299+
300+
</details>
301+
286302
## Roadmap
287303

288304
The [roadmap](https://docs.pact.io/roadmap/) for Pact and Pact Go is outlined on our main website.

0 commit comments

Comments
 (0)