# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 2
# self = https://watcher.sour.is/conv/woga4pa

akoizumi@mizuki: /usr/home/akoizumi OS=$(uname -sr) ARCH=$(uname -m) HOSTNAME=$(hostname) go run nofetch.go
User: akoizumi (1001) 
Editor: emux 
Operating System: FreeBSD 13.0-RELEASE-p6 
Architecture: amd64 
Hostname: mizuki 
Shell: /bin/sh 

/*
   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"))
}