stringslice

package
v0.0.0-...-ec7f410 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2014 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package stringslice implements simple functions to manipulate string slices

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

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

Contains returns true if any string in substrs is within s

func Equal

func Equal(a, b []string) bool

Equal returns a boolean reporting whether a == b

func Map

func Map(ss []string, callback func(string) string) []string

Map returns a slice containing all the elements of ss after applying the callback function to each one

func RemoveStringsFromString

func RemoveStringsFromString(s string, substrs []string) string

RemoveStringsFromString removes any string in substrs from s

func Uniq

func Uniq(items []string) (uniqItems []string)

Uniq returns a slice containing the unique strings found in items

Types

This section is empty.

Jump to

Keyboard shortcuts

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