IsBoolean

package
v0.0.0-...-5012a73 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicInfo

type BasicInfo int

BasicInfo is a set of flags describing properties of a basic type.

const (
	IsBoolean BasicInfo = 1 << iota
	IsInteger
	IsUnsigned
	IsFloat
	IsComplex
	IsString
	IsUntyped

	IsOrdered   = IsInteger | IsFloat | IsString
	IsNumeric   = IsInteger | IsFloat | IsComplex
	IsConstType = IsBoolean | IsNumeric | IsString
)

Properties of basic types.

type BasicKind

type BasicKind int

BasicKind describes the kind of basic type.

type BoolSChan

type BoolSChan interface {
	BoolSROnlyChan // aka "<-chan" - receive only
	BoolSSOnlyChan // aka "chan<-" - send only
}

BoolSChan represents a bidirectional channel

type BoolSROnlyChan

type BoolSROnlyChan interface {
	RequestBoolS() (dat []bool)        // the receive function - aka "MyBoolS := <-MyBoolSROnlyChan"
	TryBoolS() (dat []bool, open bool) // the multi-valued comma-ok receive function - aka "MyBoolS, ok := <-MyBoolSROnlyChan"
}

BoolSROnlyChan represents a receive-only channel

type BoolSSOnlyChan

type BoolSSOnlyChan interface {
	ProvideBoolS(dat []bool) // the send function - aka "MyKind <- some BoolS"
}

BoolSSOnlyChan represents a send-only channel

type Chan

type Chan interface {
	ROnlyChan // aka "<-chan" - receive only
	SOnlyChan // aka "chan<-" - send only
}

Chan represents a bidirectional channel

type DCh

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

DCh is a demand channel

func MakeDemandBuff

func MakeDemandBuff(cap int) *DCh

MakeDemandBuff returns a (pointer to a) fresh buffered (with capacity cap) demand channel

func MakeDemandChan

func MakeDemandChan() *DCh

MakeDemandChan returns a (pointer to a) fresh unbuffered demand channel

func (*DCh) Provide

func (c *DCh) Provide(dat bool)

Provide is the send function - aka "MyKind <- some "

func (*DCh) Request

func (c *DCh) Request() (dat bool)

Request is the receive function - aka "some <- MyKind"

func (*DCh) Try

func (c *DCh) Try() (dat bool, open bool)

Try is the comma-ok multi-valued form of Request and reports whether a received value was sent before the channel was closed.

type DChBoolS

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

DChBoolS is a demand channel

func MakeDemandBoolSBuff

func MakeDemandBoolSBuff(cap int) *DChBoolS

MakeDemandBoolSBuff returns a (pointer to a) fresh buffered (with capacity cap) demand channel

func MakeDemandBoolSChan

func MakeDemandBoolSChan() *DChBoolS

MakeDemandBoolSChan returns a (pointer to a) fresh unbuffered demand channel

func (*DChBoolS) ProvideBoolS

func (c *DChBoolS) ProvideBoolS(dat []bool)

ProvideBoolS is the send function - aka "MyKind <- some BoolS"

func (*DChBoolS) RequestBoolS

func (c *DChBoolS) RequestBoolS() (dat []bool)

RequestBoolS is the receive function - aka "some BoolS <- MyKind"

func (*DChBoolS) TryBoolS

func (c *DChBoolS) TryBoolS() (dat []bool, open bool)

TryBoolS is the comma-ok multi-valued form of RequestBoolS and reports whether a received value was sent before the BoolS channel was closed.

type ROnlyChan

type ROnlyChan interface {
	Request() (dat bool)        // the receive function - aka "My := <-MyROnlyChan"
	Try() (dat bool, open bool) // the multi-valued comma-ok receive function - aka "My, ok := <-MyROnlyChan"
}

ROnlyChan represents a receive-only channel

type SCh

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

SCh is a supply channel

func MakeSupplyBuff

func MakeSupplyBuff(cap int) *SCh

MakeSupplyBuff returns a (pointer to a) fresh buffered (with capacity cap) supply channel

func MakeSupplyChan

func MakeSupplyChan() *SCh

MakeSupplyChan returns a (pointer to a) fresh unbuffered supply channel

func (*SCh) Provide

func (c *SCh) Provide(dat bool)

Provide is the send function - aka "MyKind <- some "

func (*SCh) Request

func (c *SCh) Request() (dat bool)

Request is the receive function - aka "some <- MyKind"

func (*SCh) Try

func (c *SCh) Try() (dat bool, open bool)

Try is the comma-ok multi-valued form of Request and reports whether a received value was sent before the channel was closed.

type SChBoolS

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

SChBoolS is a supply channel

func MakeSupplyBoolSBuff

func MakeSupplyBoolSBuff(cap int) *SChBoolS

MakeSupplyBoolSBuff returns a (pointer to a) fresh buffered (with capacity cap) supply channel

func MakeSupplyBoolSChan

func MakeSupplyBoolSChan() *SChBoolS

MakeSupplyBoolSChan returns a (pointer to a) fresh unbuffered supply channel

func (*SChBoolS) ProvideBoolS

func (c *SChBoolS) ProvideBoolS(dat []bool)

ProvideBoolS is the send function - aka "MyKind <- some BoolS"

func (*SChBoolS) RequestBoolS

func (c *SChBoolS) RequestBoolS() (dat []bool)

RequestBoolS is the receive function - aka "some BoolS <- MyKind"

func (*SChBoolS) TryBoolS

func (c *SChBoolS) TryBoolS() (dat []bool, open bool)

TryBoolS is the comma-ok multi-valued form of RequestBoolS and reports whether a received value was sent before the BoolS channel was closed.

type SOnlyChan

type SOnlyChan interface {
	Provide(dat bool) // the send function - aka "MyKind <- some "
}

SOnlyChan represents a send-only channel

Jump to

Keyboard shortcuts

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