diff --git a/stdbin/pwd/main.go b/stdbin/pwd/main.go new file mode 100644 index 00000000..96b2a369 --- /dev/null +++ b/stdbin/pwd/main.go @@ -0,0 +1,15 @@ +package main + +import ( + "fmt" + "os" +) + +func main() { + wd, err := os.Getwd() + if err != nil { + fmt.Fprintf(os.Stderr, "error: %s", err) + os.Exit(1) + } + fmt.Println(wd) +}