strarray

package
v0.0.0-...-04a4f9f Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: GPL-3.0 Imports: 1 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteSliceIndex

func DeleteSliceIndex(s []string, idx int) []string

DeleteSliceIndex deletes item at idx while preventing index errors.

func DeleteSliceValue

func DeleteSliceValue(s []string, v string) []string

DeleteSliceValue deletes all occurances of v from s.

func InSliceSli

func InSliceSli(l [][]string, s string, c int) bool

InSliceSli returns true if s is in column c in l.

func InSliceStr

func InSliceStr(l []string, s string) bool

InSliceStr returns true if s is in l.

func SliceCount

func SliceCount(s []string, v string) int

SliceCount returns the number of occurances of v in s.

func SliceIndex

func SliceIndex(l []string, v string) int

SliceIndex returns the first index of v in l.

func TitleCase

func TitleCase(t string) string

TitleCase manually converts term to title case (strings.Title is buggy).

Types

This section is empty.

Jump to

Keyboard shortcuts

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