Drums speak according as you strike.

git-svn-id: file:///srv/svn/repo/mima/trunk@4 d2428f92-30f9-164c-8098-19ee57ce342c
This commit is contained in:
novaburst 2022-05-12 13:09:10 +00:00
parent c609b87a3b
commit abe29a142f
2 changed files with 5 additions and 5 deletions

6
README
View File

@ -4,13 +4,13 @@ Depends on: uname(1)
``` ```
akoizumi@mizuki: ~/Repos/akoizumi/code/antifetch go run main.go akoizumi@mizuki: ~/Repos/akoizumi/code/antifetch go run main.go
User: akoizumi (1001) akoizumi (1001) @ mizuki
Editor: o Editor: o
Operating System: FreeBSD 13.0-RELEASE-p6 Operating System: FreeBSD 13.0-RELEASE-p6
Architecture: amd64 Architecture: amd64
Hostname: mizuki
Shell: /bin/sh Shell: /bin/sh
``` ```
Licensed under DPL-1.1 Licensed under DPL-1.1

View File

@ -29,10 +29,10 @@ func main() {
log.Fatal(errhost) log.Fatal(errhost)
} }
fmt.Printf("User: %s (%d) \n",os.Getenv("USER") ,os.Getuid()) fmt.Printf("%s (%d) @ %s", os.Getenv("USER"), os.Getuid(), getHost)
fmt.Printf("\n")
fmt.Printf("Editor: %s \n", os.Getenv("EDITOR")) fmt.Printf("Editor: %s \n", os.Getenv("EDITOR"))
fmt.Printf("Operating System: %s", getOS) fmt.Printf("Operating System: %s", getOS)
fmt.Printf("Architecture: %s", getArch) fmt.Printf("Architecture: %s", getArch)
fmt.Printf("Hostname: %s", getHost)
fmt.Printf("Shell: %s \n", os.Getenv("SHELL")) fmt.Printf("Shell: %s \n", os.Getenv("SHELL"))
} }