diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-02-12 20:10:44 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-02-12 20:13:03 +0100 |
commit | bffe99aeadae09abd02f2bd3184925af6b680535 (patch) | |
tree | 556d223ebcd32b957e62e15353087b93a824641c /internal/tai64n/tai64n.go | |
parent | Moved test-processes to background (diff) | |
download | wireguard-go-bffe99aeadae09abd02f2bd3184925af6b680535.tar.xz wireguard-go-bffe99aeadae09abd02f2bd3184925af6b680535.zip |
Don't use modules
Feel free to revert this if you have a strong feeling about it. But so
far as I can see, it adds a lot of complexity for basically no upsides.
Diffstat (limited to '')
-rw-r--r-- | tai64n.go (renamed from internal/tai64n/tai64n.go) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/tai64n/tai64n.go b/tai64n.go index da5257c..8c5ebe0 100644 --- a/internal/tai64n/tai64n.go +++ b/tai64n.go @@ -1,4 +1,4 @@ -package tai64n +package main import ( "bytes" @@ -11,7 +11,7 @@ const base = uint64(4611686018427387914) type Timestamp [TimestampSize]byte -func Now() Timestamp { +func TimestampNow() Timestamp { var tai64n Timestamp now := time.Now() secs := base + uint64(now.Unix()) |