Clean up the test example in README

This works without an import cycle and has been `go fmt`'ified
pull/1979/head
Sean Chittenden 9 years ago
parent 4255a0826d
commit a3254522fe

@ -13,14 +13,16 @@ from Consul's core and API client, meaning it can be easily imported and used in
external unit tests for various applications. It works by invoking the Consul external unit tests for various applications. It works by invoking the Consul
CLI, which means it is a requirement to have Consul installed in the `$PATH`. CLI, which means it is a requirement to have Consul installed in the `$PATH`.
Following is some example usage: Following is an example usage:
```go ```go
package main package my_program
import ( import (
"github.com/hashicorp/consul/testutil"
"testing" "testing"
"github.com/hashicorp/consul/consul/structs"
"github.com/hashicorp/consul/testutil"
) )
func TestMain(t *testing.T) { func TestMain(t *testing.T) {

Loading…
Cancel
Save