Skip to content

Commit 9fc5b6e

Browse files
committed
feat: initialize environment and log configuration state in main function
1 parent f42ccb7 commit 9fc5b6e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package main
22

33
import (
4+
"fmt"
45
"log"
56
"net/http"
67
"net/url"
@@ -49,7 +50,9 @@ func scanCategories(imageDir string) []Category {
4950
}
5051

5152
func main() {
52-
initConfig()
53+
initEnv()
54+
55+
fmt.Printf("State: %s,%s,%s\n", config.Adderss, config.ClientId, config.ClientSecret)
5356

5457
categoryCache = scanCategories(config.ImageDir)
5558

0 commit comments

Comments
 (0)