strings

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 27, 2019 License: Apache-2.0 Imports: 0 Imported by: 4

Documentation

Overview

Package strings contains some generic tools and helpers that are missing from the go's standard library

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareSlices

func CompareSlices(first, second []string) bool

CompareSlices compares two string slices and returns true if both are empty or have exactly the same list of elements (order doesn't matter)

func ContainsString

func ContainsString(slice []string, s string) bool

ContainsString checks if a string slice contains the string

func GetCommon

func GetCommon(first, second []string) []string

GetCommon returns common part of first and second

func RemoveString

func RemoveString(slice []string, s string) (result []string)

RemoveString removes a string from a string slice and returns a new slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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