Compare commits

8 Commits

Author SHA1 Message Date
ead6543d95 Merge branch 'master' into kd-live 2023-07-10 17:53:35 +09:00
dd05ebf6ce Merge branch 'master' into kd-live 2023-07-10 17:46:25 +09:00
3024a17b54 Merge branch 'master' into kd-live 2023-07-10 17:16:12 +09:00
65d3081870 Merge branch 'master' into kd-live 2023-06-30 18:05:16 +09:00
fcdf1642d2 Merge branch 'master' into kd-live 2023-06-28 17:37:59 +09:00
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 package flagx
import ( import (
"encoding"
"flag" "flag"
"fmt" "fmt"
"os" "os"
@ -125,9 +124,6 @@ func Duration(name string, value time.Duration, usage string) *time.Duration {
return findProperFlagSet(name).Duration(name, value, usage) 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) { func Func(name, usage string, fn func(string) error) {
findProperFlagSet(name).Func(name, usage, fn) findProperFlagSet(name).Func(name, usage, fn)
} }

2
go.mod
View File

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