Documentation ¶ Index ¶ func Fetch(req common.FetchRequest) (f *os.File, image db.Image, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Fetch ¶ func Fetch(req common.FetchRequest) (f *os.File, image db.Image, err error) Fetch random matching file from Danbooru. f can be nil, if no file is matched, even when err = nil. Caller must close and remove temporary file after use. Types ¶ This section is empty. Source Files ¶ View all Source files main.go Click to show internal directories. Click to hide internal directories.