utils

package
v0.0.0-...-34a520e Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mention

func Mention(userID string) string

Mention Returns the passed username with a prefix of @

func Padding

func Padding(s string, p int) int

Padding Calculates the offset needed to reach the maximum column width

func SendChannelMessage

func SendChannelMessage(channelID string, message string)

SendChannelMessage sends a channel message to channel with channel id equal to m.ChannelID

func SendPrivateMessage

func SendPrivateMessage(userID string, message string)

func Username

func Username(userID string) string

Username Returns only the username

Types

This section is empty.

Jump to

Keyboard shortcuts

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