utils

package
v0.0.0-...-1b29edf Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package utils contains utility functions that don't make sense to have their own namespaced packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chunk

func Chunk[T any](items []T, chunkSize int) (chunks [][]T)

Chunk breaks a slice of items into slices of a max length.

Types

This section is empty.

Directories

Path Synopsis
Package cleanup provides a way to register functions for cleanup and run them.
Package cleanup provides a way to register functions for cleanup and run them.
Package restart provides a way for a command to restart the bot.
Package restart provides a way for a command to restart the bot.

Jump to

Keyboard shortcuts

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