slice

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 0 Imported by: 0

README

Slice

  • RemoveDuplicateStr: Removes duplicate values from a slice of strings.
  • RemoveDuplicateInt: Removes duplicate values from a slice of integers.

Examples:

For examples of each function, please checkout EXAMPLES.md


Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveDuplicateInt

func RemoveDuplicateInt(intSlice []int) []int

RemoveDuplicateInt removes duplicate integers and returns a new slice without duplicates, preserving input order.

func RemoveDuplicateStr

func RemoveDuplicateStr(strSlice []string) []string

RemoveDuplicateStr removes duplicate strings and returns a new slice without duplicates, preserving input order.

Types

This section is empty.

Jump to

Keyboard shortcuts

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