cui

package
v0.0.0-...-8a162d9 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenameForm

func RenameForm(oldName string) string

func Select

func Select[T any](items []T, labelProvider LabelProvider[T]) *T

Types

type Ctx

type Ctx struct {
	Name    string
	Context *api.Context
}

func SelectContext

func SelectContext(config *api.Config) *Ctx

type CtxLabelProvider

type CtxLabelProvider struct {
}

func (CtxLabelProvider) Label

func (c CtxLabelProvider) Label(ctx Ctx) string

type LabelProvider

type LabelProvider[T any] interface {
	Label(T) string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳