Skip to content

Commit 559f9d6

Browse files
committed
Update examples
1 parent a25db0c commit 559f9d6

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package main_test
1919

2020
import (
2121
"testing"
22-
"github.com/meowgorithm/baby-blackbox"
22+
blackbox "github.com/meowgorithm/baby-blackbox"
2323
app "."
2424
)
2525

example/go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module example
2+
3+
go 1.13

example/main_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package main_test
22

33
import (
4-
"blackbox"
54
"net/http"
65
"os"
76
"testing"
87

8+
blackbox "github.com/meowgorithm/baby-blackbox"
9+
910
// Import our main application. Depending on how your project is setup
1011
// you may need to do this differently. In many cases the common use case
1112
// is to do something along the lines of:
@@ -14,7 +15,7 @@ import (
1415
//
1516
// ...which would normally be a bad circular import thing, but in the case
1617
// of testing it's fine.
17-
example "blackbox/example"
18+
example "example"
1819
)
1920

2021
func TestMain(m *testing.M) {

0 commit comments

Comments
 (0)