mirror of
https://gogs.blitter.com/RLabs/goutmp
synced 2024-08-14 19:26:41 +00:00
Cleaned up README.md formatting
This commit is contained in:
parent
a850a7ed13
commit
c09f29c34d
1 changed files with 5 additions and 2 deletions
|
@ -2,13 +2,16 @@ goutmp - Minimal bindings to C stdlib pututmpx(), getutmpx() (/var/log/wtmp) and
|
||||||
|
|
||||||
Any Go program which allows user shell access should update the standard UNIX files which track user sessions: /var/log/wtmp (for the 'w' and 'who' commands), and /var/log/lastlog (the 'last' and 'lastlog' commands).
|
Any Go program which allows user shell access should update the standard UNIX files which track user sessions: /var/log/wtmp (for the 'w' and 'who' commands), and /var/log/lastlog (the 'last' and 'lastlog' commands).
|
||||||
|
|
||||||
|
```
|
||||||
go doc
|
go doc
|
||||||
package goutmp // import "blitter.com/go/goutmp"
|
package goutmp // import "blitter.com/go/goutmp"
|
||||||
|
|
||||||
Golang bindings for basic login/utmp accounting
|
Golang bindings for basic login/utmp accounting
|
||||||
|
|
||||||
|
type UtmpEntry struct{ ... }
|
||||||
|
|
||||||
func Put_lastlog_entry(app string, usr string, host string)
|
func Put_lastlog_entry(app string, usr string, host string)
|
||||||
func Unput_utmp(entry UtmpEntry)
|
func Unput_utmp(entry UtmpEntry)
|
||||||
type UtmpEntry struct{ ... }
|
func Put_utmp(user string, host string) UtmpEntry
|
||||||
func Put_utmp(user string, host string) UtmpEntry
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue