stringslices

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package stringslices provides utility functions for working with slices of strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Map

func Map(values []string, mapFn MapFn) []string

Map creates a new slice of strings where the value for each string is the result of applying the map function to each value in the original slice.

Types

type MapFn

type MapFn func(value string) string

A MapFn represents a function for mapping/converting string slice values another string value.

Jump to

Keyboard shortcuts

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