reqspec.go 203 B

1234567891011
  1. package peer_protocol
  2. import "fmt"
  3. type RequestSpec struct {
  4. Index, Begin, Length Integer
  5. }
  6. func (me RequestSpec) String() string {
  7. return fmt.Sprintf("{%d %d %d}", me.Index, me.Begin, me.Length)
  8. }