uniq

package
v1.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Uniq

type Uniq struct {
	// contains filtered or unexported fields
}

Uniq can deal with unique list.

func New

func New() *Uniq

New returns a new Uniq.

func (*Uniq) Add

func (u *Uniq) Add(newEntry string)

Add adds a new entry.

func (*Uniq) AddAll added in v0.0.4

func (u *Uniq) AddAll(newEntries []string)

AddAll adds multiple new entries.

func (*Uniq) Len added in v0.0.5

func (u *Uniq) Len() int

Len returns the length

func (*Uniq) List

func (u *Uniq) List() []string

List returns a internal unique list.

Jump to

Keyboard shortcuts

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