From: Sergey Matveev Date: Tue, 27 Jun 2023 09:28:23 +0000 (+0300) Subject: Explicit latest Go X-Git-Tag: v2.0.1^0 X-Git-Url: http://www.git.cypherpunks.ru/?p=gotai64n.git;a=commitdiff_plain;h=65368c82f3c1d232b14dd5f806697a08e942ad0e Explicit latest Go --- diff --git a/go.mod b/go.mod index e0e9206..9238f9b 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module go.cypherpunks.ru/tai64n/v2 -go 1.12 +go 1.20 diff --git a/tai64n.go b/tai64n.go index 50a4e55..2ffe3e8 100644 --- a/tai64n.go +++ b/tai64n.go @@ -18,11 +18,11 @@ along with this program. If not, see . // TAI64/TAI64N (http://cr.yp.to/libtai/tai64.html) dealing library. // You can convert time to TAI64/TAI64N and vice versa with it. // -// tai := new(tai64n.TAI64N) -// tai.FromTime(time.Now()) -// printable := tai64n.Encode(tai[:]) -// decoded, err := tai64n.Decode(printable) -// tai64n.ToTime(tai[:]) == decoded +// tai := new(tai64n.TAI64N) +// tai.FromTime(time.Now()) +// printable := tai64n.Encode(tai[:]) +// decoded, err := tai64n.Decode(printable) +// tai64n.ToTime(tai[:]) == decoded // // By default TAI64 timestamps contain initial 1972-01-01 10-seconds // TAI<->UTC difference. If you need honest TAI representation, then you