13 lines
161 B
Go
13 lines
161 B
Go
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]))
|
|
}
|