You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
161 B
13 lines
161 B
8 years ago
|
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]))
|
||
|
}
|