list

package
v0.0.0-...-9d0e06d Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayStringPointToArrayString

func ArrayStringPointToArrayString(stringArray []*string) []string

ArrayPointStringToArrayString convert a pointer string's array to normal string's array

func ArrayStringReverse

func ArrayStringReverse(s []string) (ret []string)

ArrayStringReverse Retorna um array de strings com os mesmos dados do array passado como parametro mas com a ordem invertida

func ArrayStringToArrayInterface

func ArrayStringToArrayInterface(stringArray []string) []interface{}

ArrayStringToArrayInterface convert a array of string into array of interface

func ContainsString

func ContainsString(array []string, str string) bool

ContainsString check if a string contains in array of string

func Difference

func Difference(slice1 []string, slice2 []string) []string

Difference retorna a diferenca entre duas listas de string

func RemoveDuplicate

func RemoveDuplicate[T string | int | float64](sliceList []T) []T

RemoveDuplicate remove items duplicado de um slice

func RemoveIndex

func RemoveIndex(s []int, index int) []int

RemoveIndex remove um item no array/slice baseado no index

func RemoveIndexFromInterface

func RemoveIndexFromInterface(s []interface{}, index int) []interface{}

RemoveIndexFromInterface remove um item no array/slice baseado no index cujo parametro é uma interface

func RemoveStringItem

func RemoveStringItem(items []string, item string) (newItems []string)

RemoveStringItem remove um item de um array de string

Types

This section is empty.

Jump to

Keyboard shortcuts

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