modifier

package
v0.0.0-...-6902453 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Iter

func Iter[T any](ctx context.Context, modifiers ...Modifier[T]) <-chan Modifier[any]

func Modify

func Modify[T any](target T, modifiers ...Modifier[T])

func Unwrap

func Unwrap(a any) any

Types

type Discord

type Discord struct {
}

func (Discord) Modify

func (Discord) Modify(target any)

type Iterator

type Iterator interface {
	Iter(ctx context.Context) <-chan Modifier[any]
}

type Modifier

type Modifier[T any] interface {
	Modify(target T)
}

func When

func When[T any](when bool, modifiers ...Modifier[T]) Modifier[T]

type Modifiers

type Modifiers []Modifier[any]

func ModifiersOf

func ModifiersOf[T any](modifiers ...Modifier[T]) Modifiers

func (Modifiers) Iter

func (modifiers Modifiers) Iter(ctx context.Context) <-chan Modifier[any]

func (Modifiers) Modify

func (modifiers Modifiers) Modify(target any)

Jump to

Keyboard shortcuts

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