Compare commits

3 Commits

Author SHA1 Message Date
262b9cadec Merge branch 'master' into kd-live 2023-06-27 15:18:13 +09:00
b61c5862cc 1.18에는 flag.TextVar없음? 2023-06-21 18:39:56 +09:00
f385d6a7b8 kd live는 go 1.18 2023-06-21 18:29:08 +09:00
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 => ./