aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/pborman/getopt/v2/duration.go
diff options
context:
space:
mode:
authorSlack Coder <slackcoder@server.ky>2023-10-18 17:27:00 -0500
committerSlack Coder <slackcoder@server.ky>2023-10-18 17:27:00 -0500
commit2be3a82f3a801a84c98a4de9c818ce8b0497135b (patch)
tree9fb89a6b10fddbb1560d895215b445813d3ea28c /vendor/github.com/pborman/getopt/v2/duration.go
parent2fda2161877e61e16b7f208ba1f92f650776cbe2 (diff)
downloadpkgtools-go-todo.tar.xz
move todos to project roottodo
Diffstat (limited to 'vendor/github.com/pborman/getopt/v2/duration.go')
-rw-r--r--vendor/github.com/pborman/getopt/v2/duration.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/vendor/github.com/pborman/getopt/v2/duration.go b/vendor/github.com/pborman/getopt/v2/duration.go
deleted file mode 100644
index 7607815..0000000
--- a/vendor/github.com/pborman/getopt/v2/duration.go
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright 2017 Google Inc. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package getopt
-
-import "time"
-
-// Duration creates an option that parses its value as a time.Duration.
-func Duration(name rune, value time.Duration, helpvalue ...string) *time.Duration {
- CommandLine.FlagLong(&value, "", name, helpvalue...)
- return &value
-}
-
-func (s *Set) Duration(name rune, value time.Duration, helpvalue ...string) *time.Duration {
- s.FlagLong(&value, "", name, helpvalue...)
- return &value
-}
-
-func DurationLong(name string, short rune, value time.Duration, helpvalue ...string) *time.Duration {
- CommandLine.FlagLong(&value, name, short, helpvalue...)
- return &value
-}
-
-func (s *Set) DurationLong(name string, short rune, value time.Duration, helpvalue ...string) *time.Duration {
- s.FlagLong(&value, name, short, helpvalue...)
- return &value
-}