_bool

package
v0.0.1-20230523-0002 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool struct {
	// contains filtered or unexported fields
}

func New

func New() *Bool

func NewContext

func NewContext(ctx context.Context) *Bool

func NewVal

func NewVal(v bool) *Bool

func NewValContext

func NewValContext(v bool, ctx context.Context) *Bool

func (*Bool) False

func (v *Bool) False()

func (*Bool) Get

func (v *Bool) Get() bool

func (*Bool) GetAndToggle

func (v *Bool) GetAndToggle() bool

func (*Bool) HasOnChange

func (v *Bool) HasOnChange(eventName string) bool

func (*Bool) HasOnChangeAsync

func (v *Bool) HasOnChangeAsync(eventName string) bool

func (*Bool) HasOnFalse

func (v *Bool) HasOnFalse(eventName string) bool

func (*Bool) HasOnFalseAsync

func (v *Bool) HasOnFalseAsync(eventName string) bool

func (*Bool) HasOnTrue

func (v *Bool) HasOnTrue(eventName string) bool

func (*Bool) HasOnTrueAsync

func (v *Bool) HasOnTrueAsync(eventName string) bool

func (*Bool) IfFalseSetTrue

func (v *Bool) IfFalseSetTrue() bool

func (*Bool) IfTrueSetFalse

func (v *Bool) IfTrueSetFalse() bool

func (*Bool) OnChange

func (v *Bool) OnChange(eventName string, onChange OnChange) bool

OnChange -> when the value has changed!

func (*Bool) OnChangeAsync

func (v *Bool) OnChangeAsync(eventName string, onChange OnChange) bool

OnChangeAsync -> when the value has changed!

func (*Bool) OnChangeAsyncRemove

func (v *Bool) OnChangeAsyncRemove(eventName string) *Bool

func (*Bool) OnChangeRemove

func (v *Bool) OnChangeRemove(eventName string) *Bool

func (*Bool) OnFalse

func (v *Bool) OnFalse(eventName string, onFalse OnFalse) bool

OnFalse -> when false happens!

func (*Bool) OnFalseAsync

func (v *Bool) OnFalseAsync(eventName string, onFalse OnFalse) bool

OnFalse -> when false happens!

func (*Bool) OnFalseAsyncRemove

func (v *Bool) OnFalseAsyncRemove(eventName string) *Bool

func (*Bool) OnFalseRemove

func (v *Bool) OnFalseRemove(eventName string) *Bool

func (*Bool) OnTrue

func (v *Bool) OnTrue(eventName string, onTrue OnTrue) bool

OnTrue -> when True happens!

func (*Bool) OnTrueAsync

func (v *Bool) OnTrueAsync(eventName string, onTrue OnTrue) bool

OnTrue -> when True happens!

func (*Bool) OnTrueAsyncRemove

func (v *Bool) OnTrueAsyncRemove(eventName string) *Bool

func (*Bool) OnTrueRemove

func (v *Bool) OnTrueRemove(eventName string) *Bool

func (*Bool) RWGet

func (v *Bool) RWGet(callback func(v *Bool)) bool

TODO: something is wrong here?!!

func (*Bool) Set

func (v *Bool) Set(value bool)

func (*Bool) True

func (v *Bool) True()

func (*Bool) WaitForFalse

func (v *Bool) WaitForFalse() *Bool

func (*Bool) WaitForTrue

func (v *Bool) WaitForTrue() *Bool

func (*Bool) WaitUntilFalse

func (v *Bool) WaitUntilFalse() *Bool

WaitUntilFalse -> If it's not false, it will wait until is it! If it's false already, it will go futher without waiting!

func (*Bool) WaitUntilTrue

func (v *Bool) WaitUntilTrue() *Bool

WaitUntilTrue -> If it's not true, it will wait until is it! If it's true already, it will go futher without waiting!

type OnChange

type OnChange func(v *Bool, newVal bool)

type OnChangeAsync

type OnChangeAsync func(v *Bool, newVal bool)

type OnFalse

type OnFalse func(v *Bool)

type OnTrue

type OnTrue func(v *Bool)

Jump to

Keyboard shortcuts

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