config

package
Version: v0.0.1-0...-d0d4b74 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DataDir    string
	DefaultSet string
	WordsBatch int
	Sets       map[string]struct{}
}

func NewConfig

func NewConfig(opts ...Option) Config

type Option

type Option func(*Config)

func OptDataDir

func OptDataDir(s string) Option

func OptDefaultSet

func OptDefaultSet(s string) Option

func OptSets

func OptSets(sets []string) Option

func OptWordsBatch

func OptWordsBatch(i int) Option

Source Files

Jump to

Keyboard shortcuts

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