stringslice

package
v0.0.0-...-6295505 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(a, b []string) (removed, added []string)

Diff returns removed, added from diff between a and b

func Equal

func Equal(a, b []string) bool

Equal returns a boolean reporting whether a == b

func Index

func Index(s string, l []string) int

Index returns the index of the s element in l. If s is not present in l, return -1.

func Map

func Map(a []string, fn func(string) string) []string

func Permute

func Permute(slice []string) [][]string

Permute returns all possible permutations of string slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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