_slice

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Column

func Column[K Slice, V Slice](mapList []map[K]V, key K) []V

func Group

func Group[K Slice, V Slice](mapList []map[K]V, key K) map[V]map[K]V

func Implode

func Implode[K Slice](elementList []K, separator string) string

func In

func In[K Slice](element K, elementList []K) bool

func Unique

func Unique[K Slice](elementList []K) []K

Types

type Slice

type Slice interface {
	string | int8 | int16 | int32 | int64 | int | uint8 | uint16 | uint32 | uint64 | uint | float32 | float64 | bool
}

Jump to

Keyboard shortcuts

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