(value interface{}, defaultValue int)
| 119 | } |
| 120 | |
| 121 | func assertIntOr(value interface{}, defaultValue int) int { |
| 122 | if n, ok := value.(int); ok { |
| 123 | return n |
| 124 | } |
| 125 | |
| 126 | return defaultValue |
| 127 | } |
| 128 | |
| 129 | func assertStringOr(value interface{}, defaultValue string) string { |
| 130 | if s, ok := value.(string); ok { |
no outgoing calls
no test coverage detected
searching dependent graphs…