utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64

func Base64(src []byte) string

Base64 encodes a byte slice to a base64 string.

func GenRandomBytes

func GenRandomBytes(n uint32) ([]byte, error)

GenRandomBytes generates crypto-secure random bytes.

func StripANSI

func StripANSI(str string) string

StripANSI strips ansi out of a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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