interfaces

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comparer

type Comparer interface {
	// Should return `true` when values are equal; `false` when not equal.
	Equal(other Comparer) bool
	// Should return `true` when the comparer is less than `other`; `false` when not less than.
	Lt(other Comparer) bool
}

Interface for values that can be compared.

type Iterator

type Iterator interface {
	// Return a read-only channel of the iterator values.
	Iter() <-chan interface{}
}

Interface for values that can be iterated over.

Jump to

Keyboard shortcuts

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