From: Sergey Matveev Date: Tue, 6 Aug 2024 12:04:59 +0000 (+0300) Subject: gofumpt X-Git-Tag: v3.1.0~2 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c2e61ca80e856ccedb6fac93e6e7f25e95be1148;p=gotai64n.git gofumpt --- diff --git a/tai64n.go b/tai64n.go index f27ead7..37e9f79 100644 --- a/tai64n.go +++ b/tai64n.go @@ -42,8 +42,10 @@ const ( Base = 0x4000000000000000 + Leapsecs1972 ) -type TAI64 [TAI64Size]byte -type TAI64N [TAI64NSize]byte +type ( + TAI64 [TAI64Size]byte + TAI64N [TAI64NSize]byte +) func (dst *TAI64) FromTime(src time.Time) { binary.BigEndian.PutUint64(dst[:], uint64(Base)+uint64(src.Unix()))