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
|
||||
package go_login
|
||||
package goutmp
|
||||
|
||||
//#include <stdio.h>
|
||||
//#include <stdlib.h>
|
|
@ -1,14 +1,14 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"blitter.com/go/go_login"
|
||||
"blitter.com/go/goutmp"
|
||||
)
|
||||
|
||||
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)
|
||||
utmp := goutmp.Put_utmp(user, host)
|
||||
goutmp.Put_lastlog_entry("hkexsh", user, host)
|
||||
goutmp.Unput_utmp(utmp)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue