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:
parent
c609b87a3b
commit
abe29a142f
6
README
6
README
@ -4,13 +4,13 @@ Depends on: uname(1)
|
||||
|
||||
```
|
||||
akoizumi@mizuki: ~/Repos/akoizumi/code/antifetch go run main.go
|
||||
User: akoizumi (1001)
|
||||
akoizumi (1001) @ mizuki
|
||||
|
||||
Editor: o
|
||||
Operating System: FreeBSD 13.0-RELEASE-p6
|
||||
Architecture: amd64
|
||||
Hostname: mizuki
|
||||
Shell: /bin/sh
|
||||
```
|
||||
|
||||
|
||||
Licensed under DPL-1.1
|
||||
Licensed under DPL-1.1
|
||||
|
4
main.go
4
main.go
@ -29,10 +29,10 @@ func main() {
|
||||
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("Operating System: %s", getOS)
|
||||
fmt.Printf("Architecture: %s", getArch)
|
||||
fmt.Printf("Hostname: %s", getHost)
|
||||
fmt.Printf("Shell: %s \n", os.Getenv("SHELL"))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user