utilities

package
v0.0.0-...-69810a0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(slice1 []string, slice2 []string) bool

Contains returns true, if all elements of slice2 exist in slice1. Does not regard number of occurrences per element.

func HasModule

func HasModule(bot interfaces.Bot, name string) bool

HasModule returns whether or not a bot connector has a specific module loaded.

func UniqueItemsOf

func UniqueItemsOf(s []string) []string

UniqueItemsOf returns the given slice, with every element unique. Duplicates are removed from the returned slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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