Documentation
¶
Index ¶
- func MaxLimit(wholeLength int, limit int) int
- func OfSearch(length int) int
- func OfSplits(wholeLength int, limit int) int
- func Predictive(possibleLen int, multiplier float64, additionalCap int) int
- func PredictiveDefault(possibleLen int) int
- func PredictiveDefaultSmall(possibleLen int) int
- func PredictiveFiftyPercentIncrement(possibleLen int, additionalCap int) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaxLimit ¶ added in v0.8.3
MaxLimit
returns
- limit: -1, returns predictive length based on wholeLength (max 100)
- limit: >= 0, returns limit if limit < wholeLength or else returns wholeLength
func OfSplits ¶
OfSplits
returns
- limit: -1, returns predictive length based on wholeLength (max 100)
- limit: >= 0, returns limit if limit < wholeLength or else returns predictive length based on wholeLength (max 100)
func Predictive ¶ added in v0.4.0
Predictive Result must be positive possibleLen * multiplier + additionalCap.
Less than zero yields additionalCap
func PredictiveDefault ¶ added in v0.4.1
PredictiveDefault Result must be positive possibleLen * multiplier + constants.ArbitraryCapacity50.
Less than zero yields constants.ArbitraryCapacity50
func PredictiveDefaultSmall ¶ added in v0.6.2
func PredictiveFiftyPercentIncrement ¶ added in v0.4.0
PredictiveFiftyPercentIncrement Result must be positive possibleLen * multiplier + additionalCap.
Less than zero yields additionalCap
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.