12 lines
203 B
Go
Raw Normal View History

2022-03-10 10:44:48 +01:00
package peer_protocol
import "fmt"
type RequestSpec struct {
Index, Begin, Length Integer
}
func (me RequestSpec) String() string {
return fmt.Sprintf("{%d %d %d}", me.Index, me.Begin, me.Length)
}