mirror of
https://gogs.blitter.com/RLabs/goutmp
synced 2024-08-14 19:26:41 +00:00
Added main/ test dir
This commit is contained in:
parent
3cc5c8ca4c
commit
b32cb60f49
2 changed files with 14 additions and 0 deletions
14
main/test.go
Normal file
14
main/test.go
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
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)
|
||||||
|
}
|
||||||
|
|
BIN
test
BIN
test
Binary file not shown.
Loading…
Reference in a new issue