utils

package
v0.0.0-...-48df7e4 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package utils provides common utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSecureToken

func GenerateSecureToken(length int) (string, error)

GenerateSecureToken generates a secure random token of the given length

func GenerateSecureTokenMustSucceed

func GenerateSecureTokenMustSucceed(length int) string

GenerateSecureTokenMustSucceed generates a secure random token or panics This is useful for initialization code where failure is unrecoverable

func ObfuscateToken deprecated

func ObfuscateToken(token string) string

Deprecated: use obfuscate.ObfuscateTokenGeneric directly at call sites.

Types

This section is empty.

Jump to

Keyboard shortcuts

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