diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2018-02-12 22:29:11 +0100 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2018-02-12 22:29:11 +0100 |
commit | ea4ea6f9334b8979bec6a881d7f94d7fa94e9b9c (patch) | |
tree | e939f1c2e4c09d871918a08e9646572e318e6cf1 /internal/tai64n/tai64n.go | |
parent | Don't use modules (diff) | |
download | wireguard-go-ea4ea6f9334b8979bec6a881d7f94d7fa94e9b9c.tar.xz wireguard-go-ea4ea6f9334b8979bec6a881d7f94d7fa94e9b9c.zip |
Revert "Don't use modules"
This reverts commit bffe99aeadae09abd02f2bd3184925af6b680535.
Diffstat (limited to '')
-rw-r--r-- | internal/tai64n/tai64n.go (renamed from tai64n.go) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tai64n.go b/internal/tai64n/tai64n.go index 8c5ebe0..da5257c 100644 --- a/tai64n.go +++ b/internal/tai64n/tai64n.go @@ -1,4 +1,4 @@ -package main +package tai64n import ( "bytes" @@ -11,7 +11,7 @@ const base = uint64(4611686018427387914) type Timestamp [TimestampSize]byte -func TimestampNow() Timestamp { +func Now() Timestamp { var tai64n Timestamp now := time.Now() secs := base + uint64(now.Unix()) |