Documentation
¶
Index ¶
- func DefaultPof(max int) func(one, other Val, pos int) (int, bool)
- func Label(v Val) string
- func NewAddressFromString(s string) []byte
- func ProxCmp(a, x, y interface{}) int
- func ToBin(a []byte) string
- func ToBytes(v Val) []byte
- type Address
- type BytesAddress
- type Pof
- type Pot
- func (t *Pot) Each(f func(Val, int) bool) bool
- func (t *Pot) EachBin(val Val, pof Pof, po int, ...)
- func (t *Pot) EachFrom(f func(Val, int) bool, po int) bool
- func (t *Pot) EachNeighbour(val Val, pof Pof, f func(Val, int) bool) bool
- func (t *Pot) EachNeighbourAsync(val Val, pof Pof, max int, maxPos int, f func(Val, int), wait bool)
- func (t *Pot) Pin() Val
- func (t *Pot) Size() int
- func (t *Pot) String() string
- type Val
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAddressFromString ¶
Types ¶
type Address ¶
func NewAddressFromBytes ¶
func RandomAddress ¶
func RandomAddress() Address
func RandomAddressAt ¶
func (*Address) MarshalJSON ¶
func (*Address) UnmarshalJSON ¶
type BytesAddress ¶
type BytesAddress interface {
Address() []byte
}
type Pot ¶
type Pot struct {
// contains filtered or unexported fields
}
func (*Pot) EachNeighbour ¶
func (*Pot) EachNeighbourAsync ¶
Click to show internal directories.
Click to hide internal directories.