strings

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PreferNewSliceElements

func PreferNewSliceElements(existing []string, new []string, parseFunc parse) []string

PreferNewSliceElements returns a slice with elements from new slice that are not in existing slice Note: existing elements will not be removed over new ones.

func SliceToMap

func SliceToMap(slice []string) map[string]bool

SliceToMap converts a slice of strings to a map of strings

func SliceToMapParse

func SliceToMapParse(slice []string, parseFunc parse) map[string]bool

SliceToMapParse converts a slice of strings to a map of strings, keys are applied with parseFunc.

func SliceToSet

func SliceToSet(s []string) []string

SliceToSet converts a slice of strings to a set of strings

Types

This section is empty.

Jump to

Keyboard shortcuts

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