In-reply-to »

/*
   This is a silly nofetch(1) reimplementation in Go.
   Where most information is provided by yourself!
   i.e. OS, ARCH, HOSTNAME
*/

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("HOSTNAME"))
        fmt.Printf("Shell: %s \n", os.Getenv("SHELL"))
}

⤋ Read More