GetFloat32Default same as `Get` but returns its float32 representation, if key doesn't exist then it returns the "defaultValue".
(key string, defaultValue float32)
| 391 | // GetFloat32Default same as `Get` but returns its float32 representation, |
| 392 | // if key doesn't exist then it returns the "defaultValue". |
| 393 | func (s *Session) GetFloat32Default(key string, defaultValue float32) float32 { |
| 394 | if v, err := s.GetFloat32(key); err == nil { |
| 395 | return v |
| 396 | } |
| 397 | |
| 398 | return defaultValue |
| 399 | } |
| 400 | |
| 401 | // GetFloat64 same as `Get` but returns its float64 representation, |
| 402 | // if key doesn't exist then it returns -1 and a non-nil error. |
nothing calls this directly
no test coverage detected