- Replace prazdnikisegodnyaru with celebratoday as first is banned in Russia - Update .golangci.yml rule set - Megatons of fixes for linter - Update README.md
28 lines
521 B
Go
28 lines
521 B
Go
// Package main ensures that oauth keys downloaded correctly and client part is working.
|
|
package main
|
|
|
|
import (
|
|
"aleesa-webapp-go/internal/flickr"
|
|
"aleesa-webapp-go/internal/webapp"
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
if err := webapp.ReadConfig(); err != nil {
|
|
fmt.Fprintln(os.Stderr, err)
|
|
os.Exit(1)
|
|
}
|
|
|
|
result, err := flickr.SearchByTags(webapp.Config, []string{"snail", "slug"})
|
|
|
|
if err != nil {
|
|
fmt.Fprintln(os.Stderr, err)
|
|
os.Exit(1)
|
|
}
|
|
|
|
fmt.Println(result)
|
|
}
|
|
|
|
/* vim: set ft=go noet ai ts=4 sw=4 sts=4: */
|