diff --git a/code/src/chapter01/io/main.go b/code/src/chapter01/io/main.go index 90ec2c9..4c72843 100644 --- a/code/src/chapter01/io/main.go +++ b/code/src/chapter01/io/main.go @@ -2,7 +2,8 @@ package main import ( "fmt" - "util" + + "../../util" ) func main() { diff --git a/code/src/chapter01/io/reader.go b/code/src/chapter01/io/reader.go index e025017..813888e 100644 --- a/code/src/chapter01/io/reader.go +++ b/code/src/chapter01/io/reader.go @@ -6,7 +6,8 @@ import ( "io" "os" "strings" - "util" + + "../../util" ) func ReaderExample() { diff --git a/code/src/chapter09/testing/example_test.go b/code/src/chapter09/testing/example_test.go index 5f0c5a8..3e845e1 100644 --- a/code/src/chapter09/testing/example_test.go +++ b/code/src/chapter09/testing/example_test.go @@ -1,8 +1,9 @@ package testing_test import ( - . "chapter09/testing" "fmt" + + . "../testing" ) func ExampleFib() { diff --git a/code/src/chapter09/testing/parallel_test.go b/code/src/chapter09/testing/parallel_test.go index ae47260..a2e2a16 100644 --- a/code/src/chapter09/testing/parallel_test.go +++ b/code/src/chapter09/testing/parallel_test.go @@ -2,9 +2,10 @@ package testing_test import ( "bytes" - . "chapter09/testing" "html/template" "testing" + + . "../testing" ) var pairs = []struct { diff --git a/code/src/chapter09/testing/t_test.go b/code/src/chapter09/testing/t_test.go index ea0c0ae..0a7aed0 100644 --- a/code/src/chapter09/testing/t_test.go +++ b/code/src/chapter09/testing/t_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - . "chapter09/testing" + . "../testing" ) // Table-Driven Test