function

package
v1.0.0-dev.45 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Root = bootstrap.Root + ".function"
)

Variables

This section is empty.

Functions

func Default

func Default() string

Default returns the default cmd name from config.

Types

type CmdFunc

type CmdFunc func(fn Handler) *co.Command

CmdFunc defines a function that return a command.

type Function

type Function struct {
	// contains filtered or unexported fields
}

func (*Function) Run

func (f *Function) Run(ctx context.Context, fn Handler, c ...CmdFunc) error

Jump to

Keyboard shortcuts

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