Fix all golint comment related problems in the pkg packages

This commit is contained in:
Ola Bini 2019-12-21 17:19:26 +00:00
parent 65d43576a0
commit e7589e706e
No known key found for this signature in database
GPG key ID: 6786A150F6A2B28F
17 changed files with 47 additions and 18 deletions

View file

@ -12,6 +12,7 @@ import (
"strings"
)
// Options contains the different possible HTML filtering options
type Options struct {
StripHTML bool
MaxTextMessageLength int
@ -24,6 +25,7 @@ var defaultOptions Options = Options{
MaxImageMessageLength: 1024 * 1024,
}
// Errors that can happen in this module
var (
ErrExceedsTextMessageLength = errors.New("Exceeds text message length")
ErrExceedsImageMessageLength = errors.New("Exceeds image message length")