slicex

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForPage

func ForPage(cnt, page, pageSize int) (int, int)

func InIntSlice

func InIntSlice(needle int, array []int) bool

func InStringSlice

func InStringSlice(needle string, array []string, ignoreCase ...bool) bool

func IntColumn

func IntColumn(
	columnName string,
	list []map[string]interface{},
	matcher func(arg0 int) bool,
	unique ...bool,
) []int

func IntSliceUnique

func IntSliceUnique(list []int) []int

func MapSliceForPage

func MapSliceForPage(list []map[string]interface{}, page, pageSize int) []map[string]interface{}

func StringColumn

func StringColumn(
	columnName string,
	list []map[string]interface{},
	matcher func(arg0 string) bool,
	unique ...bool,
) []string

func StringSliceUnique

func StringSliceUnique(list []string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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