newsbot-api/internal/services/input/common.go

17 lines
698 B
Go

package input
import "errors"
var (
ErrMissingAuthorName = errors.New("unable to find the post author name")
ErrMissingAuthorImage = errors.New("unable to find the post author image")
ErrMissingThumbnail = errors.New("unable to find the post thumbnail url")
ErrMissingPublishDate = errors.New("unable to find the post publish date")
ErrMissingTags = errors.New("unable to find the post tags")
ErrMissingDescription = errors.New("unable to find the post description")
ErrMissingUrl = errors.New("unable to find the post url")
ErrInvalidAuthorImage = errors.New("expected value looks to be wrong, something is missing")
)
const DATETIME_FORMAT string = "1/2/2006 3:4 PM"