set

package
v2.1.0-rc.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecimalSet

type DecimalSet map[types.MyDecimal]struct{}

DecimalSet is a decimal set.

func NewDecimalSet

func NewDecimalSet() DecimalSet

NewDecimalSet builds a decimal set.

func (DecimalSet) Exist

func (s DecimalSet) Exist(val *types.MyDecimal) bool

Exist checks whether `val` exists in `s`.

func (DecimalSet) Insert

func (s DecimalSet) Insert(val *types.MyDecimal)

Insert inserts `val` into `s`.

type Float64Set

type Float64Set map[float64]struct{}

Float64Set is a float64 set.

func NewFloat64Set

func NewFloat64Set() Float64Set

NewFloat64Set builds a float64 set.

func (Float64Set) Exist

func (s Float64Set) Exist(val float64) bool

Exist checks whether `val` exists in `s`.

func (Float64Set) Insert

func (s Float64Set) Insert(val float64)

Insert inserts `val` into `s`.

type StringSet

type StringSet map[string]struct{}

StringSet is a string set.

func NewStringSet

func NewStringSet() StringSet

NewStringSet builds a float64 set.

func (StringSet) Exist

func (s StringSet) Exist(val string) bool

Exist checks whether `val` exists in `s`.

func (StringSet) Insert

func (s StringSet) Insert(val string)

Insert inserts `val` into `s`.

Jump to

Keyboard shortcuts

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