utils

package
v0.0.0-...-e311ac8 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MessageForbidden is returned for HTTP 403 errors
	MessageForbidden = "You are not allowed to access this page"
)

Variables

This section is empty.

Functions

func DecodeString

func DecodeString(str string) string

DecodeString takes a safely encoded string and decodes it into hex string

func EncodeString

func EncodeString(str string) string

EncodeString makes sure the ETH address is safe for storage

func GenerateRandomString

func GenerateRandomString(n int) string

GenerateRandomString returns a URL-safe, base64 encoded securely generated random string.

func IndexOfString

func IndexOfString(slice []string, value string) int

IndexOfString returns the index (position) of value within slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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