collectionutil

package
v0.0.0-...-a563701 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2016 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InStringSlice

func InStringSlice(slice []string, src string) bool

InStringSlice check if the `src` string in the slice

Types

type Qualifiable

type Qualifiable interface {
	IsQualified(...interface{}) bool
}

Qualifiable is the interface that represents those things could be filtered according to some criteria.

IsQualified returns true if it satisfies all criteria, else return false.

func GetQualifiedItems

func GetQualifiedItems(src []Qualifiable, criteria ...interface{}) (int, []Qualifiable)

GetQualifiedItems gets items which are qualified by qualifier from the item collection

Jump to

Keyboard shortcuts

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