Documentation ¶
Index ¶
- Variables
- func AlphaOrdered() feature.Constructor
- func CollectionMember() feature.Constructor
- func CollectionMemberIndexed() feature.Constructor
- func CombinationStrings() feature.Constructor
- func Combinations(list Replacer, selectNum int, repeatable bool, buf int) (c chan Replacer)
- func Default() feature.Constructor
- func List() feature.Constructor
- func ListExpand() feature.Constructor
- func ListExpandIntRange() feature.Constructor
- func ListMirrorInts() feature.Constructor
- func ListShuffle() feature.Constructor
- func ListWithNull() feature.Constructor
- func RoundRobin() feature.Constructor
- func Set() feature.Constructor
- func SimpleRandom() feature.Constructor
- func SourcedRandom() feature.Constructor
- func WeightedStringWithNormalizedWeights() feature.Constructor
- func WeightedStringWithWeights() feature.Constructor
- type Choice
- type Choices
- type Registerable
- type Registerables
- type Replacer
- type StringReplacer
Constants ¶
This section is empty.
Variables ¶
View Source
var LargerMin = xrr.Xrror("Min cannot be greater than max.")
View Source
var Unreachable = xrr.Xrror("weighted choices error: unreachable")
Functions ¶
func AlphaOrdered ¶
func AlphaOrdered() feature.Constructor
func CollectionMember ¶
func CollectionMember() feature.Constructor
func CollectionMemberIndexed ¶
func CollectionMemberIndexed() feature.Constructor
func CombinationStrings ¶
func CombinationStrings() feature.Constructor
func Combinations ¶
func List ¶
func List() feature.Constructor
func ListExpand ¶
func ListExpand() feature.Constructor
func ListExpandIntRange ¶
func ListExpandIntRange() feature.Constructor
func ListMirrorInts ¶
func ListMirrorInts() feature.Constructor
func ListShuffle ¶
func ListShuffle() feature.Constructor
func ListWithNull ¶
func ListWithNull() feature.Constructor
func RoundRobin ¶
func RoundRobin() feature.Constructor
func Set ¶
func Set() feature.Constructor
A set constructor that takes provided keys and links them to multiple features in a return map.
func SimpleRandom ¶
func SimpleRandom() feature.Constructor
func SourcedRandom ¶
func SourcedRandom() feature.Constructor
func WeightedStringWithNormalizedWeights ¶
func WeightedStringWithNormalizedWeights() feature.Constructor
func WeightedStringWithWeights ¶
func WeightedStringWithWeights() feature.Constructor
Types ¶
type Choices ¶
func SplitStringChoices ¶
type Registerable ¶
type Registerable func() feature.Constructor
type Registerables ¶
type Registerables struct {
// contains filtered or unexported fields
}
func (*Registerables) Register ¶
func (r *Registerables) Register() error
type StringReplacer ¶
type StringReplacer []string
func (StringReplacer) Len ¶
func (sl StringReplacer) Len() int
func (StringReplacer) Replace ¶
func (sl StringReplacer) Replace(indices []int) Replacer
func (StringReplacer) Value ¶
func (sl StringReplacer) Value() string
func (StringReplacer) ValueNoSame ¶
func (sl StringReplacer) ValueNoSame() (string, bool)
Click to show internal directories.
Click to hide internal directories.