util

package module
v0.0.0-...-7111dfa Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasAllElements

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

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

func InArray

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

InArray return true if the elem is in the array arr

func IsSameStringArray

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

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

func RemoveRepeatedElement

func RemoveRepeatedElement(arr []string) (newArr []string)

RemoveRepeatedElement remove duplicated element in array

func StringArrayToInterfacArray

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

StringArrayToInterfacArray convert the []string to []interface

func Sub

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

Sub return 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