Skip to content

Commit

Permalink
Merge pull request #244 from NeowayLabs/add-stdbin-pwd2
Browse files Browse the repository at this point in the history
Add pwd
  • Loading branch information
i4ki authored Nov 12, 2017
2 parents 13fafe7 + b4cb725 commit 0088976
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions stdbin/pwd/main.go
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit 0088976

Please sign in to comment.