options

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 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 Options

type Options struct {
	Strict   bool
	Prefix   string
	Filename string
}

Options struct for configurator

func New

func New(cbs ...WithOptionCallback) *Options

Make new options instance using callbacks

type WithOptionCallback

type WithOptionCallback func(*Options)

Callback type for options setup

func UseStrict

func UseStrict(s bool) WithOptionCallback

Set readers to strict mode (experimental)

func WithFilename

func WithFilename(name string) WithOptionCallback

Set filename for config file

func WithPrefix

func WithPrefix(prefix string) WithOptionCallback

Set prefix for keys

Jump to

Keyboard shortcuts

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