mima/main.go
novaburst 10df19dd95 De minimis non curat lex.
git-svn-id: file:///srv/svn/repo/mima/trunk@2 d2428f92-30f9-164c-8098-19ee57ce342c
2022-05-10 12:40:48 +00:00

26 lines
609 B
Go

// All Rites Reversed (ĸ) 3188 Aoi Koizumi
/*
This is a silly nofetch(1) reimplementation in Go.
Where most information is provided by yourself!
i.e. OS, ARCH, HOST
Also it only uses parts of the standard library
*/
package main
import (
"fmt"
"os"
)
func main() {
fmt.Printf("User: %s (%d) \n",os.Getenv("USER") ,os.Getuid())
fmt.Printf("Editor: %s \n", os.Getenv("EDITOR"))
fmt.Printf("Operating System: %s \n", os.Getenv("OS"))
fmt.Printf("Architecture: %s \n", os.Getenv("ARCH"))
fmt.Printf("Hostname: %s \n", os.Getenv("HOST"))
fmt.Printf("Shell: %s \n", os.Getenv("SHELL"))
}