mirror of
https://gogs.blitter.com/RLabs/goutmp
synced 2024-08-14 19:26:41 +00:00
Renamed pkg to goutmp
This commit is contained in:
parent
59979a4896
commit
487fffbaa5
2 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
||||||
// Golang bindings for basic login/utmp accounting
|
// Golang bindings for basic login/utmp accounting
|
||||||
package go_login
|
package goutmp
|
||||||
|
|
||||||
//#include <stdio.h>
|
//#include <stdio.h>
|
||||||
//#include <stdlib.h>
|
//#include <stdlib.h>
|
|
@ -1,14 +1,14 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"blitter.com/go/go_login"
|
"blitter.com/go/goutmp"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
user := "bin"
|
user := "bin"
|
||||||
host := "test.example.com"
|
host := "test.example.com"
|
||||||
utmp := go_login.Put_utmp(user, host)
|
utmp := goutmp.Put_utmp(user, host)
|
||||||
go_login.Put_lastlog_entry("hkexsh", user, host)
|
goutmp.Put_lastlog_entry("hkexsh", user, host)
|
||||||
go_login.Unput_utmp(utmp)
|
goutmp.Unput_utmp(utmp)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue