util

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

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasAllElements

func HasAllElements(arr1 []interface{}, arr2 []interface{}) bool

HasAllElements returns true if the array arr1 contains all elements of array arr2

func InArray

func InArray(elem interface{}, arr []interface{}) bool

InArray returns true if the elem is in the array arr

func IsSameStringArray

func IsSameStringArray(arr1 []string, arr2 []string) bool

IsSameStringArray returns true if arr1 and arr2 has exactly same elements without order care

func StringArrayToInterfacArray

func StringArrayToInterfacArray(arr []string) []interface{}

StringArrayToInterfacArray converts []string to []interface

func Sub

func Sub(arr1 []string, arr2 []string) []string

Sub returns all the element in arr1 but not in arr2

Types

This section is empty.

Jump to

Keyboard shortcuts

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