Compare commits

9 Commits

2 changed files with 1 additions and 5 deletions

View File

@ -1,7 +1,6 @@
package flagx
import (
"encoding"
"flag"
"fmt"
"os"
@ -125,9 +124,6 @@ func Duration(name string, value time.Duration, usage string) *time.Duration {
return findProperFlagSet(name).Duration(name, value, usage)
}
func TextVar(p encoding.TextUnmarshaler, name string, value encoding.TextMarshaler, usage string) {
findProperFlagSet(name).TextVar(p, name, value, usage)
}
func Func(name, usage string, fn func(string) error) {
findProperFlagSet(name).Func(name, usage, fn)
}

2
go.mod
View File

@ -1,6 +1,6 @@
module repositories.action2quare.com/ayo/gocommon
go 1.19
go 1.18
replace repositories.action2quare.com/ayo/gocommon => ./