Add missing cmd folders, change logrus to slog, update gitignore

This commit is contained in:
eleksir
2025-10-12 15:25:08 +03:00
parent 6cebe40018
commit 1330c512aa
40 changed files with 284 additions and 3149 deletions

22
cmd/flickr_init/main.go Normal file
View File

@@ -0,0 +1,22 @@
package main
import (
"aleesa-webapp-go/internal/config"
"aleesa-webapp-go/internal/flickr"
"fmt"
"os"
)
func main() {
if c, err := config.ReadConfig(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
} else {
if err := flickr.APIClientInit(c); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}
}
/* vim: set ft=go noet ai ts=4 sw=4 sts=4: */