]> Sergey Matveev's repositories - btrtrc.git/blob - struct_test.go
Drop support for go 1.20
[btrtrc.git] / struct_test.go
1 package torrent
2
3 import (
4         "testing"
5         "unsafe"
6 )
7
8 func TestStructSizes(t *testing.T) {
9         t.Log("[]*File", unsafe.Sizeof([]*File(nil)))
10         t.Log("Piece", unsafe.Sizeof(Piece{}))
11         t.Log("map[*peer]struct{}", unsafe.Sizeof(map[*Peer]struct{}(nil)))
12 }