more index work

This commit is contained in:
Mark McGranaghan
2012-09-23 14:38:39 -07:00
parent 3474d39dc5
commit c19a29193e
112 changed files with 8 additions and 39 deletions

11
069-users/users.go Normal file
View File

@@ -0,0 +1,11 @@
package main
import "fmt"
import "os/user"
func main() {
me, _ := user.Current()
fmt.Println(me)
root, _ := user.Lookup("root")
fmt.Println(root)
}

3
069-users/users.sh Normal file
View File

@@ -0,0 +1,3 @@
$ go run users.go
&{501 20 mmcgrana Mark McGranaghan /Users/mmcgrana}
&{0 0 root System Administrator /var/root}