I am developing in Go language, echo framework.
I am designing a logger and I want to log the equivalent of thread ID to the log, but I do not know a good method.
For example, if login processing is performed at the same time with multiple accesses, it succeeds on one side and fails on one side It can not be determined by looking at the log which failed.
After examining, in Go language goroutine's id exists, but I should not get it, Originally it was said that goroutine was not the same in the same thread.
How can I identify threads? Or is there a package to put them in the log?
I'm sorry if I used the wrong expression as English is not my mother tongue. Thanks.