utils

package
v0.0.0-...-c424ded Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualIndex

func EqualIndex(a []interface{}, b interface{}) int

func FieldByName

func FieldByName(val interface{}, name string) (reflect.Value, reflect.Type)

func FindField

func FindField(val interface{}, name string) (*reflect.Value, int)

func IterKeybindings

func IterKeybindings(v ...interface{}) []key.Binding

func MaxInt

func MaxInt(a, b int) int

func MinInt

func MinInt(a, b int) int

func SliceInsert

func SliceInsert[T any](arr []T, index int, arg T) []T

Types

type Capsule

type Capsule[T any] struct {
	// contains filtered or unexported fields
}

type GenResultMsg

type GenResultMsg struct {
	Res       any
	StringRep string
}

type Predicate

type Predicate[T any] func(t T) bool

type Stringable

type Stringable interface {
	ToString() string
}

type TickMsg

type TickMsg time.Time

Jump to

Keyboard shortcuts

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