strslice

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2019 License: MIT Imports: 2 Imported by: 5

Documentation

Overview

Package strslice provides a few helper functions for dealing with []string.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Common

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

func Contains

func Contains(list []string, a string) bool

Contains checks if a string is in a []string, returns bool.

func ContainsCaseInsensitive

func ContainsCaseInsensitive(list []string, a string) bool

ContainsCaseInsensitive checks if a string is in a []string, regardless of case.

func Remove

func Remove(s []string, r string) []string

Remove a particular string

func RemoveDuplicates

func RemoveDuplicates(options *[]string, otherStringsToClean ...string)

RemoveDuplicates in []string

func ToIntSlice

func ToIntSlice(in []string) ([]int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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