diff --git a/whothis/main.go b/whothis/main.go new file mode 100644 index 0000000..8eaef59 --- /dev/null +++ b/whothis/main.go @@ -0,0 +1,12 @@ +package main + +import ( + "fmt" + "os" + "path/filepath" +) + +func main() { + fmt.Printf("args: %#v\n", os.Args) + fmt.Printf("prog: %s\n", filepath.Base(os.Args[0])) +}