flag 자체 구현

This commit is contained in:
2023-06-21 14:13:30 +09:00
parent 94b6d1499a
commit 0d8752e661
7 changed files with 197 additions and 27 deletions

View File

@ -4,8 +4,12 @@ import (
"encoding/json"
"os"
"time"
"repositories.action2quare.com/ayo/gocommon/flagx"
)
var configfileflag = flagx.String("config", "", "")
func configFilePath() string {
configfilepath := "config.json"
if configfileflag != nil && len(*configfileflag) > 0 {