utils

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateShortID

func GenerateShortID(idLength int) (string, error)

GenerateShortID generates a random string of length idLength It uses base64 encoding with URL safe characters

func SliceContains

func SliceContains[T comparable](s []T, val T) bool

SliceContains returns true if the element is found in slice

func ToStrPtr

func ToStrPtr(str string) *string

ToStrPtr ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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