()
| 260 | ) |
| 261 | |
| 262 | func (p PatchMode) validate() error { |
| 263 | switch p { |
| 264 | case PatchAuto, PatchAlways, PatchNever: |
| 265 | return nil |
| 266 | default: |
| 267 | return fmt.Errorf("invalid patch mode %q (must be %s, %s or %s)", |
| 268 | p, PatchAuto, PatchAlways, PatchNever) |
| 269 | } |
| 270 | } |
| 271 | |
| 272 | type Package struct { |
| 273 | Name string |
no outgoing calls
no test coverage detected