Skip to content

Commit 0088976

Browse files
authored
Merge pull request #244 from NeowayLabs/add-stdbin-pwd2
Add pwd
2 parents 13fafe7 + b4cb725 commit 0088976

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

stdbin/pwd/main.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
}

0 commit comments

Comments
 (0)