callback

package
v0.0.0-...-ce24463 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandExtractChoose = iota
	CommandExtractDone

	FlagWildcard
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Callback

type Callback struct {
	Command int      `json:"C"`
	Args    []string `json:"A"`
	Index   []int    `json:"I"`
	Flags   []int    `json:"F"`
}

func (Callback) HasArg

func (c Callback) HasArg(arg string) bool

HasArg checks whether the callback arguments include the given one

func (Callback) HasFlag

func (c Callback) HasFlag(flag int) bool

HasArg checks whether the callback flags include the given one

func (Callback) HasIndex

func (c Callback) HasIndex(index int) bool

HasArg checks whether the callback indexes include the given one

Jump to

Keyboard shortcuts

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