eventtype

package
v0.0.0-...-aa082da Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckArgType

func CheckArgType(code EventCode, arg any) error

func MakeHandler

func MakeHandler(code EventCode, fun any) (func(any), error)

Types

type EventCode

type EventCode int

func RegisterNew

func RegisterNew[T any](name string) EventCode

RegisterNew registers new event type globally. Returns newly registered EventCode

func (EventCode) String

func (c EventCode) String() string

Jump to

Keyboard shortcuts

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