package
module
Version:
v0.0.0-...-5cacdcd
Opens a new window with list of versions in this module.
Published: Apr 6, 2022
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
func Unique[T any](l []T, toId func(T) uint) []T
Unique filters duplicates of a slice l of elements that are reducible to a uint by the function toId, e.g. gorm models.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.