From bbd6591c4f87b3f2c3e870b6418c6234d90a82e6 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Sat, 21 May 2022 20:31:09 +0200 Subject: go fmt --- pkg/types/leaf.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'pkg/types/leaf.go') diff --git a/pkg/types/leaf.go b/pkg/types/leaf.go index 9e8d445..99cf08a 100644 --- a/pkg/types/leaf.go +++ b/pkg/types/leaf.go @@ -12,14 +12,14 @@ import ( ) type Statement struct { - ShardHint uint64 `ascii:"shard_hint"` - Checksum merkle.Hash `ascii:"checksum"` + ShardHint uint64 `ascii:"shard_hint"` + Checksum merkle.Hash `ascii:"checksum"` } type Leaf struct { Statement - Signature Signature `ascii:"signature"` - KeyHash merkle.Hash `ascii:"key_hash"` + Signature Signature `ascii:"signature"` + KeyHash merkle.Hash `ascii:"key_hash"` } type Leaves []Leaf @@ -84,10 +84,10 @@ func (l *Leaf) FromASCII(r io.Reader) error { func (l *Leaves) FromASCII(r io.Reader) error { leaves := &struct { - ShardHint []uint64 `ascii:"shard_hint"` - Checksum []merkle.Hash `ascii:"checksum"` - Signature []Signature `ascii:"signature"` - KeyHash []merkle.Hash `ascii:"key_hash"` + ShardHint []uint64 `ascii:"shard_hint"` + Checksum []merkle.Hash `ascii:"checksum"` + Signature []Signature `ascii:"signature"` + KeyHash []merkle.Hash `ascii:"key_hash"` }{} if err := ascii.StdEncoding.Deserialize(r, leaves); err != nil { -- cgit v1.2.3