🐞 Import module xip correctly

Don't use the GitHub path; use the local directory.

See
<https://github.com/golang/go/wiki/Modules#do-modules-work-with-relative-imports-like-import-subdir>
for more information. tldr:

```golang
import "xip/xip"
```

The first `xip` is the module name, and the second `xip` is the
subdirectory. They happen to be the same in this case.
This commit is contained in:
Brian Cunnie
2020-11-28 15:06:34 -08:00
parent f3d4f70ecf
commit d9c8291f51
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ import (
"log"
"net"
"github.com/cunnie/sslip.io/src/xip"
"xip/xip"
)
func main() {

View File

@@ -3,7 +3,7 @@ package xip_test
import (
"math/rand"
"github.com/cunnie/sslip.io/src/xip"
"xip/xip"
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/extensions/table"
. "github.com/onsi/gomega"