From 1f4e7faac23b901396910f4e0d06041f77843b85 Mon Sep 17 00:00:00 2001 From: crusader Date: Wed, 21 Mar 2018 18:39:50 +0900 Subject: [PATCH] ing --- config/config.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config/config.go b/config/config.go index b3f8bf2..e74bc1c 100644 --- a/config/config.go +++ b/config/config.go @@ -8,14 +8,14 @@ const ( FlagPidFilePathName = "pid-path" ) -func FlagConfigDir() *string { - return flag.String(FlagConfigDirName, "./config.json", "The directory path of config") +func FlagConfigDir(defaultValue string) *string { + return flag.String(FlagConfigDirName, defaultValue, "The directory path of config") } -func FlagLogConfigFilePath() *string { - return flag.String(FlagLogConfigFilePathName, "", "The file path of logging config") +func FlagLogConfigFilePath(defaultValue string) *string { + return flag.String(FlagLogConfigFilePathName, defaultValue, "The file path of logging config") } -func FlagPidFilePath() *string { - return flag.String(FlagPidFilePathName, "./pid.pid", "The file path of pid") +func FlagPidFilePath(defaultValue string) *string { + return flag.String(FlagPidFilePathName, defaultValue, "The file path of pid") }