-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
42e8174
commit d459e0c
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Without trimpath: | ||
```go run main.go | ||
|
||
panic: DEBUG | ||
|
||
goroutine 1 [running]: | ||
main.main() | ||
/Users/thucle/Projects/ledongthuc/notes/go/trimpath/main.go:4 +0x39 | ||
exit status 2 | ||
``` | ||
|
||
with trimpath: | ||
``` | ||
go/trimpath [master●] » go run -trimpath main.go | ||
panic: DEBUG | ||
goroutine 1 [running]: | ||
main.main() | ||
command-line-arguments/main.go:4 +0x39 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package main | ||
|
||
func main() { | ||
panic("DEBUG") | ||
} |