cmn

package
v0.0.0-...-bafbf86 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFileByURL

func DownloadFileByURL(url string) (buf []byte, err error)

DownloadFileByURL you know. Returns file contents array

func GetFailMsg

func GetFailMsg() string

GetFailMsg - dummy error message

func GetOneMsgFromMany

func GetOneMsgFromMany(items ...string) string

GetOneMsgFromMany - wrapper for taking one msg from a set of

func GetReplyToMessageID

func GetReplyToMessageID(activity raw.Activity) int

GetReplyToMessageID - activity - a message that triggers bot. E.g. !command

Types

type Randomer

type Randomer interface {
	Intn(int) int
}

Randomer - random generater wrapper for test only

var (
	// Rnd - pick random number. Interface for tests
	Rnd Randomer
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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