Float64 returns the float64 representation of the flag given by name. It returns false if the flag is not a float64 type. It panics if the flag is not in the flag set.
(name string)
| 336 | // is not a float64 type. It panics if the flag is |
| 337 | // not in the flag set. |
| 338 | func (f Flags) Float64(name string) float64 { |
| 339 | val, _ := strconv.ParseFloat(f.String(name), 64) |
| 340 | return val |
| 341 | } |
| 342 | |
| 343 | // Duration returns the duration representation of the |
| 344 | // flag given by name. It returns false if the flag |