Documentation
¶
Overview ¶
intconv defines IntConversor structure which can be used to map integers between two ranges
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IntMapper ¶
type IntMapper struct {
// contains filtered or unexported fields
}
IntConversor is a type that allows to map numbers between two or more ranges
func (*IntMapper) AddMapping ¶
Adds a new mapping. The behaviour is not defined for multiple overlapping ranges.
Click to show internal directories.
Click to hide internal directories.