utils

package
v0.0.0-...-f22367a Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindInSlice

func FindInSlice(searchArgument string, slice []string) []string

FindInSlice searches for a string in a slice and returns all matches

func GetRandom

func GetRandom(stringSlice []string) string

GetRandom returns a random index from a slice

func NewCache

func NewCache() cache.Cache

NewCache returns an initialized go-cache

Types

This section is empty.

Jump to

Keyboard shortcuts

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