Help us shape the future of Go! Take the 2026 Go Developer Survey

sample

package
v0.48.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Value      string   `default:"default"`
	Cool       bool     `default:"false"`
	CoolArray  []string `default:"a,b,c"`
	CoolIntArr []int    `default:"1,2,3"`
	// contains filtered or unexported fields
}

func (*Handler) Args added in v0.26.0

func (me *Handler) Args() *args

func (*Handler) CobraCommand added in v0.45.0

func (me *Handler) CobraCommand() *cobra.Command

func (*Handler) RegisterRunFunc added in v0.45.0

func (me *Handler) RegisterRunFunc() snake.RunFunc

func (*Handler) Run

func (me *Handler) Run(
	ctx context.Context,
	read io.Reader,
	write io.Writer,
	en resolvers.SampleEnum,
	br io.ByteReader, bw io.ByteWriter, bs io.ByteScanner, out snake.Stdout,
) (snake.Output, error)

Jump to

Keyboard shortcuts

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