Goroutine represents the state of one goroutine, including the stack trace.
| 779 | |
| 780 | // Goroutine represents the state of one goroutine, including the stack trace. |
| 781 | type Goroutine struct { |
| 782 | // Signature is the stack trace, internal bits, state, which call site |
| 783 | // created it, etc. |
| 784 | Signature |
| 785 | // ID is the goroutine id. |
| 786 | ID int |
| 787 | // First is the goroutine first printed, normally the one that crashed. |
| 788 | First bool |
| 789 | |
| 790 | // RaceWrite is true if a race condition was detected, and this goroutine was |
| 791 | // race on a write operation, otherwise it was a read. |
| 792 | RaceWrite bool |
| 793 | // RaceAddr is set to the address when a data race condition was detected. |
| 794 | // Otherwise it is 0. |
| 795 | RaceAddr uint64 |
| 796 | |
| 797 | // Disallow initialization with unnamed parameters. |
| 798 | _ struct{} |
| 799 | } |
| 800 | |
| 801 | // Private stuff. |
| 802 |
nothing calls this directly
no outgoing calls
no test coverage detected