utils

package
v0.0.0-...-0adb484 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeHMAC

func EncodeHMAC(data string) string

func FormatDuration

func FormatDuration(seconds int64) string

func GetSource

func GetSource(text string) string

func HandleError

func HandleError(c *fiber.Ctx, err error) error

func LbryTo

func LbryTo(link string, linkType string) string

func NewClient

func NewClient() *retryablehttp.Client

func ProcessMarkdown

func ProcessMarkdown(text string) template.HTML

func ProcessText

func ProcessText(text string, newline bool) string

func ReplaceStickersAndEmotes

func ReplaceStickersAndEmotes(text string) string

func UrlEncode

func UrlEncode(link string) (string, error)

func VerifyHMAC

func VerifyHMAC(data string, mac string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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