cmd/panic/internal/incorrect/correct.go
raw| 1 | // Copyright 2020 Marc-Antoine Ruel. All rights reserved. |
| 2 | // Use of this source code is governed under the Apache License, Version 2.0 |
| 3 | // that can be found in the LICENSE file. |
| 4 | |
| 5 | // Package correct is in directory incorrect. If the call stack is |
| 6 | // incorrect.Panic(), you know the parsing failed. |
| 7 | package correct |
| 8 | |
| 9 | // Panic panics. |
| 10 | func Panic() { |
| 11 | panic(42) |
| 12 | } |