slices

package
v0.0.0-...-7c51b95 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InInt

func InInt(iss []int, v int) bool

func InInterface

func InInterface(iss interface{}, v interface{}) bool

func InString

func InString(iss []string, v string) bool

func UniqueInt

func UniqueInt(us []int) []int

func UniqueInterface

func UniqueInterface(v interface{}) []interface{}

func UniqueString

func UniqueString(us []string) []string

Types

type Slice

type Slice struct {
	// contains filtered or unexported fields
}

func New

func New() *Slice

func NewWith

func NewWith(s []interface{}) *Slice

func (*Slice) Add

func (s *Slice) Add(value interface{})

func (*Slice) DeleteWithValue

func (s *Slice) DeleteWithValue(value interface{})

func (*Slice) Exists

func (s *Slice) Exists(value interface{}) bool

func (*Slice) Index

func (s *Slice) Index(value interface{}) int

func (*Slice) LastIndex

func (s *Slice) LastIndex(value interface{}) int

func (*Slice) Len

func (s *Slice) Len() int

func (*Slice) Values

func (s *Slice) Values() []interface{}

Jump to

Keyboard shortcuts

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