From b61c5862cc1b11e68e8cc4bf266241affcd83af3 Mon Sep 17 00:00:00 2001 From: mountain Date: Wed, 21 Jun 2023 18:39:56 +0900 Subject: [PATCH] =?UTF-8?q?1.18=EC=97=90=EB=8A=94=20flag.TextVar=EC=97=86?= =?UTF-8?q?=EC=9D=8C=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flagx/commandline.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/flagx/commandline.go b/flagx/commandline.go index f2b2bcf..0bcc0d6 100644 --- a/flagx/commandline.go +++ b/flagx/commandline.go @@ -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) }