helper

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClipMessage added in v1.11.1

func ClipMessage(text string, length int) string

func DownloadFile

func DownloadFile(url string) (*[]byte, error)

func DownloadFileAuth added in v1.9.0

func DownloadFileAuth(url string, auth string) (*[]byte, error)

func GetAvatar added in v1.8.0

func GetAvatar(av map[string]string, userid string, general *config.Protocol) string

func HandleDownloadData added in v1.9.0

func HandleDownloadData(flog *log.Entry, msg *config.Message, name, comment, url string, data *[]byte, general *config.Protocol)

func HandleDownloadSize added in v1.9.0

func HandleDownloadSize(flog *log.Entry, msg *config.Message, name string, size int64, general *config.Protocol) error

func HandleExtra added in v1.8.0

func HandleExtra(msg *config.Message, general *config.Protocol) []config.Message

handle all the stuff we put into extra

func RemoveEmptyNewLines added in v1.9.1

func RemoveEmptyNewLines(msg string) string

func SplitStringLength added in v1.5.0

func SplitStringLength(input string, length int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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