defaultcapacity

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OfSearch

func OfSearch(length int) int

func OfSplits

func OfSplits(wholeTextLength int, limits int) int

returns max as 100

func Predictive added in v0.4.0

func Predictive(
	possibleLen int,
	multiplier float64,
	additionalCap int,
) int

Result must be positive possibleLen * multiplier + additionalCap.

Less than zero yields additionalCap

func PredictiveFiftyPercentIncrement added in v0.4.0

func PredictiveFiftyPercentIncrement(possibleLen int, additionalCap int) int

Result must be positive possibleLen * multiplier + additionalCap.

Less than zero yields additionalCap

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL