utils

package
v0.0.0-...-1518e3e Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package utils implements helpful funcs that are reused throughout the app and provide some simply, yet redundantly coded, functionaly.

This package should not import any other packages. This package should only be imported into other packages. This is to prevent import loops. Plus, considering that these are basic helper funcs there should be no need to depend on anything else (maybe the std lib).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandString

func RandString(length int) (s string, err error)

RandString generates a random string. This is typically used for creating login/session or 2FA cookie values. This retuns a string formated in base64.

Types

This section is empty.

Jump to

Keyboard shortcuts

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