util

package
v0.0.0-...-df918ef Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: ISC Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChunkMessage

func ChunkMessage(message string, chunkLength int) []string

ChunkMessage returns the given message in chunks with a max size of chunkLength

func IntSliceContains

func IntSliceContains(i int, slice []int) bool

IntSliceContains returns whether or not the given int is found in the given slice

func StringSliceContains

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

StringSliceContains is IntSliceContains, but for strings. I need generics -_-

Types

This section is empty.

Jump to

Keyboard shortcuts

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