dict

package
v0.0.0-...-18bfe25 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(paths ...string) (map[string][]string, error)

Load loads a set of JSON files and merges them into a single map. The JSON files have the following format:

{
  "Category1": ["Value1", "Value2", ...],
  "Category2": ["Value1", "Value2", ...],
  ...
}

Types

type DataPermutator

type DataPermutator interface {
	GenN(n int) []map[string]string
	Remaining() int
	Max() int
	Next() bool
	Value() map[string]string
	Reset()
}

DataPermutator is an interface for generating permutations of data based on a dictionary on categories and their values

func NewPermutator

func NewPermutator(data map[string][]string) DataPermutator

Jump to

Keyboard shortcuts

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