utility

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ago

func Ago(t time.Time) string

Ago converts time to human readable string.

func ExtractChannelIDAndTimestamp added in v0.2.0

func ExtractChannelIDAndTimestamp(url string) (channelID, timestamp string, err error)

ExtractChannelIDAndTimestamp extracts channel id and timestamp from URL. The timestamp is a very long integer, not a dot separated UNIX timestamp.

func GetChannelIDByName added in v0.2.0

func GetChannelIDByName(ctx context.Context, tx boil.ContextTransactor, name string) (string, error)

func MessageReplacer added in v0.2.0

func MessageReplacer() *strings.Replacer

func UserNameReplacer added in v0.2.0

func UserNameReplacer(users []*models.User) *strings.Replacer

Types

This section is empty.

Jump to

Keyboard shortcuts

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