str

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

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

Contains sliceContains

func ContainsIgnorecase

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

func FindIndex

func FindIndex(slice []string, s string) (int, bool)

FindIndex returns the first occurrence index of given string. Returns -1 if string was not found.

func Unique

func Unique(t []string) []string

Unique returns unique strings from given slice of strings

Types

This section is empty.

Jump to

Keyboard shortcuts

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