mybind

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddListener

func AddListener(l Listener, data any) error

func RemoteListener

func RemoteListener(l Listener) error

func SetState

func SetState(fn func())

Types

type BindData

type BindData interface {
	AddListener(Listener, any) error
	RemoteListener(Listener) error
	SetState(fn func())
}

定义 Bindable Data 标准接口

type Listener

type Listener interface {
	DataChanged(any)
}

定义 监听者 标准接口

Jump to

Keyboard shortcuts

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