update godep for github.com/spf13/pflag

This commit is contained in:
wu8685
2016-09-22 16:21:09 +08:00
parent ddc884f8e4
commit 6140ab26d0
21 changed files with 215 additions and 104 deletions

View File

@@ -1,9 +1,6 @@
package pflag
import (
"fmt"
"strconv"
)
import "strconv"
// -- float64 Value
type float64Value float64
@@ -23,7 +20,7 @@ func (f *float64Value) Type() string {
return "float64"
}
func (f *float64Value) String() string { return fmt.Sprintf("%v", *f) }
func (f *float64Value) String() string { return strconv.FormatFloat(float64(*f), 'g', -1, 64) }
func float64Conv(sval string) (interface{}, error) {
return strconv.ParseFloat(sval, 64)