Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBlockSlashBadFormat = fmt.Errorf("block not in the format \"<start>/<size>\"")
ErrBlockDashBadFormat = fmt.Errorf("block not in the format \"<start>-<end>\"")
)
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
Start uint32
End uint32
}
func ParseBlock ¶
func ParseBlock(in string) (Block, error)
func (Block) RangeString ¶
func (b Block) RangeString() string
type Range ¶
type Range struct {
// contains filtered or unexported fields
}
func ParseRange ¶
func ParseRange(in string) (*Range, error)
Click to show internal directories.
Click to hide internal directories.