github.com/NeowayLabs/nash@v0.2.2-0.20200127205349-a227041ffd50/stdbin/pwd/main.go (about) 1 package main 2 3 import ( 4 "fmt" 5 "os" 6 ) 7 8 func main() { 9 wd, err := os.Getwd() 10 if err != nil { 11 fmt.Fprintf(os.Stderr, "error: %s", err) 12 os.Exit(1) 13 } 14 fmt.Println(wd) 15 }