Help us shape the future of Go! Take the 2026 Go Developer Survey

stringsutil

package module
v0.0.0-...-2011ad9 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2017 License: BSD-3-Clause Imports: 2 Imported by: 2

README

stringsutil

A package stringsutil implements a strings utility.

CI Service
linux travis-ci.org
darwin circleci.com
windows appveyor-badge

codecov.io godoc.org Analytics

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinarySearch

func BinarySearch(a []string, s string) bool

BinarySearch reports whether s is within a with binary search.

func IndexContainsSlice

func IndexContainsSlice(a []string, substr string) int

IndexContainsSlice returns the index of the first instance of substr is within a slice, or -1 if s is not present in a slice.

func IndexSlice

func IndexSlice(a []string, substr string) int

IndexSlice returns the index of the first instance of s in a slice, or -1 if s is not present in a slice.

func MapSearch

func MapSearch(a []string, s string) bool

MapSearch reports whether s is within a with map search.

Types

This section is empty.

Jump to

Keyboard shortcuts

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