Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

errors.gno

0.50 Kb · 13 lines
 1package blog
 2
 3import "errors"
 4
 5var (
 6	ErrPostTitleMissing  = errors.New("post title is missing")
 7	ErrPostSlugMissing   = errors.New("post slug is missing")
 8	ErrPostBodyMissing   = errors.New("post body is missing")
 9	ErrPostSlugExists    = errors.New("post with specified slug already exists")
10	ErrPostPubDateExists = errors.New("post with specified publication date exists")
11	ErrPostTitleExists   = errors.New("post with specified title already exists")
12	ErrNoSuchPost        = errors.New("no such post")
13)