]> Cypherpunks.ru repositories - gotai64n.git/commitdiff
Explicit latest Go v2.0.1
authorSergey Matveev <stargrave@stargrave.org>
Tue, 27 Jun 2023 09:28:23 +0000 (12:28 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 27 Jun 2023 09:28:23 +0000 (12:28 +0300)
go.mod
tai64n.go

diff --git a/go.mod b/go.mod
index e0e9206ada59c9e5681ae8c1b6cfa5f7c02f94d2..9238f9b516ddb13807b2743e7dadf55879e914e5 100644 (file)
--- a/go.mod
+++ b/go.mod
@@ -1,3 +1,3 @@
 module go.cypherpunks.ru/tai64n/v2
 
-go 1.12
+go 1.20
index 50a4e559314e13f4a521991b33bb909c127e69fe..2ffe3e897cd29934d3654d24280558e3606afede 100644 (file)
--- a/tai64n.go
+++ b/tai64n.go
@@ -18,11 +18,11 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 // 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