stringslice

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: MIT Imports: 0 Imported by: 2

README

go-stringslice

Utility package providing methods to interact with string slices.

For Details please see the docs at godoc.

License

MIT License

Copyright (c) 2019 Alexander Pinnecke

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

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

Contains returns whether the given slice contains the given item

func Equals

func Equals(list1, list2 []string) bool

Equals checks whether two string slices are equal, i.e. have the same length and contain the same elements

func Remove

func Remove(list []string, item string) []string

Remove the given item from the given list if exists

Types

This section is empty.

Jump to

Keyboard shortcuts

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