]> Sergey Matveev's repositories - btrtrc.git/blob - peer_protocol/reqspec.go
Drop support for go 1.20
[btrtrc.git] / peer_protocol / reqspec.go
1 package peer_protocol
2
3 import "fmt"
4
5 type RequestSpec struct {
6         Index, Begin, Length Integer
7 }
8
9 func (me RequestSpec) String() string {
10         return fmt.Sprintf("{%d %d %d}", me.Index, me.Begin, me.Length)
11 }