w32uptime library for reading the windows event log to find out when the pc was turned on see uptime/main.go for an example