package
module
Version:
v0.0.0-...-69c91a9
Opens a new window with list of versions in this module.
Published: Nov 29, 2021
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 7
Opens a new window with list of known importers.
README
¶
Idle
Cross-platform idle time detection in Go (Golang).

Untitled, Zdislav Beksinski

Overview
Read and run idle.go command for an example of the API usage:
> go run cmd/idle.go
2015/06/13 22:55:43 Idle for 1 seconds.
2015/06/13 22:55:44 Idle for 2 seconds.
2015/06/13 22:55:45 Idle for 3 seconds.
2015/06/13 22:55:46 Idle for 4 seconds.
2015/06/13 22:55:47 Idle for 5 seconds.
2015/06/13 22:55:50 Idle for 1 seconds.
2015/06/13 22:55:51 Idle for 2 seconds.
2015/06/13 22:55:52 Idle for 3 seconds.
2015/06/13 22:55:53 Idle for 4 seconds.
2015/06/13 22:55:54 Idle for 5 seconds.
To do
- Docs.
Windows support.
- Better OSX: Figure out how to collect these values using
c.go
.
- Test Linux.
License
MIT
Documentation
¶
Duration returns the time since the last user input
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.