slice

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package slice supplies some assistant functions about slice.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InInts

func InInts(v int, vs []int) bool

InInts reports whether v is in vs.

func InSlice

func InSlice(v interface{}, vs []interface{}) bool

InSlice reports whether v is in vs.

func InStrings

func InStrings(s string, ss []string) bool

InStrings reports whether s is in ss.

func InUints

func InUints(v uint, vs []uint) bool

InUints reports whether v is in vs.

func ReverseStrings

func ReverseStrings(ss []string)

ReverseStrings reverses the elements in the strings slice.

func StringsEqual

func StringsEqual(s1, s2 []string) bool

StringsEqual reports whether the two strings is equal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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