File: README.md

package info (click to toggle)
golang-gopkg-h2non-gock.v1 1.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 364 kB
  • sloc: makefile: 2
file content (40 lines) | stat: -rw-r--r-- 490 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Examples

gock's examples showing multiple built-in features and common practical use cases.

### Set up

```bash
go get -u github.com/nbio/st
```

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

### Usage

#### Test based examples

```bash
go test ./_examples/<example>
```

##### Example

```bash
go test ./_examples/basic
```

#### Executable examples

```bash
go run ./_examples/<example>/<example>.go
```

##### Example

```bash
go run ./_examples/enable_networking/networking.go
```