pennant

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromStruct

func FromStruct(config any) (*flag.FlagSet, error)

FromStruct creates a flag set from a tagged struct

func MustParse

func MustParse(config any, args []string) *flag.FlagSet

MustParse calls Parse and exits with a helpful message on errors

func Parse

func Parse(config any, args []string) (*flag.FlagSet, error)

Parse creates a flag set from a tagged struct and parses given arguments

Types

This section is empty.

Jump to

Keyboard shortcuts

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