AsBool tells the compiler to expect a boolean result.
()
| 79 | |
| 80 | // AsBool tells the compiler to expect a boolean result. |
| 81 | func AsBool() Option { |
| 82 | return func(c *conf.Config) { |
| 83 | c.Expect = reflect.Bool |
| 84 | c.ExpectAny = true |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | // AsInt tells the compiler to expect an int result. |
| 89 | func AsInt() Option { |
no outgoing calls
searching dependent graphs…