MCPcopy Index your code
hub / github.com/cloudfoundry/cli / Float64

Method Float64

cf/flags/flags.go:178–189  ·  view source on GitHub ↗
(k string)

Source from the content-addressed store, hash-verified

176}
177
178func (c *flagContext) Float64(k string) float64 {
179 if !c.isFlagProvided(&k) {
180 return 0
181 }
182
183 v := c.flagsets[k].GetValue()
184 switch v.(type) {
185 case float64:
186 return v.(float64)
187 }
188 return 0
189}
190
191func (c *flagContext) String(k string) string {
192 if !c.isFlagProvided(&k) {

Callers

nothing calls this directly

Calls 2

isFlagProvidedMethod · 0.95
GetValueMethod · 0.65

Tested by

no test coverage detected