stringslice

package
v1.8.11-beta1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(l []string, s string) bool

Contains checks if a list contains a string

func Equal

func Equal(a, b []string) bool

Equal compares two string slices for equality. Both the existence of the elements and the order of those elements matter for equality. Empty slices are treated identically to nil slices.

func MergeSorted

func MergeSorted(a, b []string) []string

MergeSorted takes two string slices that are assumed to be sorted and does a zipper merge of the two sorted slices, removing any cross-slice duplicates. If any individual slice contained duplicates those will be retained.

Types

This section is empty.

Jump to

Keyboard shortcuts

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