Renamed pkg to goutmp

This commit is contained in:
Russ Magee 2018-06-27 14:57:26 -07:00
parent 59979a4896
commit 487fffbaa5
2 changed files with 5 additions and 5 deletions

View file

@ -1,5 +1,5 @@
// Golang bindings for basic login/utmp accounting
package go_login
package goutmp
//#include <stdio.h>
//#include <stdlib.h>

View file

@ -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)
}