_examples/

directory
v1.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2018 License: MIT

README

Examples

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

Set up
go get -u github.com/nbio/st
go get -u gopkg.in/h2non/gock.v1
Usage
Test based examples
go test ./_examples/<example>
Example
go test ./_examples/basic
Executable examples
go run ./_examples/<example>/<example>.go
Example
go run ./_examples/enable_networking/networking.go

Directories

Path Synopsis
This example shows how to enable the networking for a request to a local server and mock a second request to a remote server.
This example shows how to enable the networking for a request to a local server and mock a second request to a remote server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL