(k string)
| 162 | } |
| 163 | |
| 164 | func (c *flagContext) Int(k string) int { |
| 165 | if !c.isFlagProvided(&k) { |
| 166 | return 0 |
| 167 | } |
| 168 | |
| 169 | v := c.flagsets[k].GetValue() |
| 170 | switch v.(type) { |
| 171 | case int: |
| 172 | return v.(int) |
| 173 | } |
| 174 | |
| 175 | return 0 |
| 176 | } |
| 177 | |
| 178 | func (c *flagContext) Float64(k string) float64 { |
| 179 | if !c.isFlagProvided(&k) { |
nothing calls this directly
no test coverage detected