From ff8f3a412ebf3b83b2d67fdafcc3311800fd39ee Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 12 Feb 2018 23:48:09 +0100 Subject: [PATCH] Use relative imports --- cookie.go | 2 +- device.go | 2 +- noise-protocol.go | 2 +- {internal/ratelimiter => ratelimiter}/ratelimiter.go | 0 {internal/ratelimiter => ratelimiter}/ratelimiter_test.go | 0 {internal/tai64n => tai64n}/tai64n.go | 0 {internal/tai64n => tai64n}/tai64n_test.go | 0 {internal/xchacha20poly1305 => xchacha20poly1305}/xchacha20.go | 0 .../xchacha20poly1305 => xchacha20poly1305}/xchacha20_test.go | 0 9 files changed, 3 insertions(+), 3 deletions(-) rename {internal/ratelimiter => ratelimiter}/ratelimiter.go (100%) rename {internal/ratelimiter => ratelimiter}/ratelimiter_test.go (100%) rename {internal/tai64n => tai64n}/tai64n.go (100%) rename {internal/tai64n => tai64n}/tai64n_test.go (100%) rename {internal/xchacha20poly1305 => xchacha20poly1305}/xchacha20.go (100%) rename {internal/xchacha20poly1305 => xchacha20poly1305}/xchacha20_test.go (100%) diff --git a/cookie.go b/cookie.go index 72455a4..813ddab 100644 --- a/cookie.go +++ b/cookie.go @@ -1,9 +1,9 @@ package main import ( + "./xchacha20poly1305" "crypto/hmac" "crypto/rand" - "git.zx2c4.com/wireguard-go/internal/xchacha20poly1305" "golang.org/x/crypto/blake2s" "golang.org/x/crypto/chacha20poly1305" "sync" diff --git a/device.go b/device.go index 9f93f21..79ec0b8 100644 --- a/device.go +++ b/device.go @@ -1,7 +1,7 @@ package main import ( - "git.zx2c4.com/wireguard-go/internal/ratelimiter" + "./ratelimiter" "runtime" "sync" "sync/atomic" diff --git a/noise-protocol.go b/noise-protocol.go index df08a0a..6440c97 100644 --- a/noise-protocol.go +++ b/noise-protocol.go @@ -1,8 +1,8 @@ package main import ( + "./tai64n" "errors" - "git.zx2c4.com/wireguard-go/internal/tai64n" "golang.org/x/crypto/blake2s" "golang.org/x/crypto/chacha20poly1305" "golang.org/x/crypto/poly1305" diff --git a/internal/ratelimiter/ratelimiter.go b/ratelimiter/ratelimiter.go similarity index 100% rename from internal/ratelimiter/ratelimiter.go rename to ratelimiter/ratelimiter.go diff --git a/internal/ratelimiter/ratelimiter_test.go b/ratelimiter/ratelimiter_test.go similarity index 100% rename from internal/ratelimiter/ratelimiter_test.go rename to ratelimiter/ratelimiter_test.go diff --git a/internal/tai64n/tai64n.go b/tai64n/tai64n.go similarity index 100% rename from internal/tai64n/tai64n.go rename to tai64n/tai64n.go diff --git a/internal/tai64n/tai64n_test.go b/tai64n/tai64n_test.go similarity index 100% rename from internal/tai64n/tai64n_test.go rename to tai64n/tai64n_test.go diff --git a/internal/xchacha20poly1305/xchacha20.go b/xchacha20poly1305/xchacha20.go similarity index 100% rename from internal/xchacha20poly1305/xchacha20.go rename to xchacha20poly1305/xchacha20.go diff --git a/internal/xchacha20poly1305/xchacha20_test.go b/xchacha20poly1305/xchacha20_test.go similarity index 100% rename from internal/xchacha20poly1305/xchacha20_test.go rename to xchacha20poly1305/xchacha20_test.go