markerdefs

package
v0.0.1-beta.4 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(comment string, o interface{}) (set bool, err error)

func Register

func Register(defs ...*DefinitionWithHelp)

Types

type DefinitionWithHelp

type DefinitionWithHelp struct {
	*markers.Definition
	Help *markers.DefinitionHelp
}

func Must

func Must(def *markers.Definition, err error) *DefinitionWithHelp

func (*DefinitionWithHelp) WithHelp

type Flag

type Flag bool

func (*Flag) IsSet

func (s *Flag) IsSet() bool

func (*Flag) Set

func (s *Flag) Set(v bool)

type Setter

type Setter interface {
	IsSet() bool
	Set(bool)
}

Jump to

Keyboard shortcuts

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