]> Cypherpunks repositories - gotai64n.git/commitdiff
gofumpt
authorSergey Matveev <stargrave@stargrave.org>
Tue, 6 Aug 2024 12:04:59 +0000 (15:04 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 6 Aug 2024 12:04:59 +0000 (15:04 +0300)
tai64n.go

index f27ead7df8db1d994dc97fc93308ee3980bd7146..37e9f79fa50d58f088ba971f56d1ab7202a37a53 100644 (file)
--- 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()))