Help us shape the future of Go! Take the 2026 Go Developer Survey

slice

package
v1.54.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DivideSlice

func DivideSlice[T any](slice []T, parts int) [][]T

DivideSlice divides a slice into a number of parts. It aims for the most equal distribution possible.

func ValidateAndDeduplicateAddresses

func ValidateAndDeduplicateAddresses(addresses []string) ([]string, bool, error)

ValidateAndDeduplicateAddresses validates a slice of addresses and deduplicates them. It returns the deduplicated slice and a boolean indicating if there were duplicates.

Types

This section is empty.

Jump to

Keyboard shortcuts

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