parseroptions

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 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 Option

type Option func(*Options)

Option is the functional option type.

func Nested

func Nested(nested bool) Option

func VTypeCell

func VTypeCell(cursor int, typeCell string) Option

type Options

type Options struct {
	Nested bool
	// contains filtered or unexported fields
}

Options follow the design of Functional Options(https://github.com/tmrts/go-patterns/blob/master/idiom/functional-options.md)

func ParseOptions

func ParseOptions(options ...Option) *Options

func (*Options) GetVTypeCell

func (opts *Options) GetVTypeCell(cursor int) string

Jump to

Keyboard shortcuts

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