corporateanon / loginctl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

loginctl

Retrieves information about current users activity in Linux desktop systems

package main

import (
	"log"

	"github.com/corporateanon/loginctl"
)

func main() {
	lctl, err := loginctl.NewFromRegularUsers()
	if err != nil {
		log.Panicln(err)
	}

	log.Println(lctl.GetSessionInfo())

}

About


Languages

Language:Go 100.0%