26 lines
609 B
Go
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"))
|
|
}
|