Documentation ¶
Overview ¶
Package checks contains routines for processing check numbers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Range ¶
type Range struct { // First check number of range inclusive First int // Last check number of range inclusive Last int }
Range represents a range of contiguous check numbers
type RangeWithHoles ¶
type RangeWithHoles struct { // The first check number inclusive First int // The last check number inclusive Last int // The missing checks in between the first and last check number. Holes []Range }
RangeWithHoles is used to report missing checks.
func Missing ¶
func Missing(checkNos []int) *RangeWithHoles
Missing takes a sequence of check numbers and reports missing checks. Duplicate check numbers in checkNos are treated as if the check number appeared once. If checkNos is empty, Missing returns nil.
Click to show internal directories.
Click to hide internal directories.