aboutsummaryrefslogtreecommitdiff
path: root/flag.go
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2022-12-03 21:31:28 +0000
committerGrégoire Duchêne <gduchene@awhk.org>2022-12-03 21:31:28 +0000
commitaca3d73f8ce8cf46a80cb098589627a6b412aae1 (patch)
tree69b64f5901af2815b9329575f13743fb419716e2 /flag.go
parente2fb0e1ccaaedf5c4004db01593a0773cd626006 (diff)
Remove redundant ParseString
Diffstat (limited to 'flag.go')
-rw-r--r--flag.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/flag.go b/flag.go
index 018540a..adc88f3 100644
--- a/flag.go
+++ b/flag.go
@@ -108,11 +108,6 @@ func InitFlagSet(fs *flag.FlagSet, env []string, cfg map[string]string, args []s
return err
}
-// ParseString returns the string passed with no error set.
-func ParseString(s string) (string, error) {
- return s, nil
-}
-
// ParseTime parses a string according to the time.RFC3339 format.
func ParseTime(s string) (time.Time, error) {
return time.Parse(time.RFC3339, s)