mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 14:42:26 +08:00
17 lines
248 B
Go
17 lines
248 B
Go
//go:build windows
|
|
// +build windows
|
|
|
|
package logger
|
|
|
|
import (
|
|
"strconv"
|
|
|
|
"golang.org/x/sys/windows"
|
|
)
|
|
|
|
func (l *Logger) getThreadId() (threadId string) {
|
|
tid := windows.GetCurrentThreadId()
|
|
threadId = strconv.Itoa(int(tid))
|
|
return threadId
|
|
}
|