mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-22 15:37:59 +00:00
19 lines
306 B
Go
19 lines
306 B
Go
// go mod init cliparse.go
|
|
// go get golang.org/x/sys
|
|
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"golang.org/x/sys/windows"
|
|
)
|
|
|
|
func main() {
|
|
fmt.Printf("<<%s>>\n", windows.UTF16PtrToString(windows.GetCommandLine()))
|
|
fmt.Println()
|
|
for i, arg := range os.Args {
|
|
fmt.Printf("args[%d] <<%s>>\n", i, arg)
|
|
}
|
|
}
|