mirror of
https://gogs.blitter.com/RLabs/goutmp
synced 2024-08-14 19:26:41 +00:00
14 lines
235 B
Go
14 lines
235 B
Go
package main
|
|
|
|
import (
|
|
"blitter.com/go/go_login"
|
|
)
|
|
|
|
func main() {
|
|
user := "bin"
|
|
host := "test.example.com"
|
|
utmp := go_login.Put_utmp(user, host)
|
|
go_login.Put_lastlog_entry("hkexsh", user, host)
|
|
go_login.Unput_utmp(utmp)
|
|
}
|
|
|