Programming Code Center(PCC)
[GO]

(PCC)::[How-to-use-Command-line-arguments-to-parameterize-execution-of-programs-in-go-language]::[go]

File Name : command-line-arguments.go

package main

import (
    "fmt"
    "os"
)

func main() {

    argsWithProg := os.Args
    argsWithoutProg := os.Args[1:]

    arg := os.Args[3]

    fmt.Println(argsWithProg)
    fmt.Println(argsWithoutProg)
    fmt.Println(arg)
}

Output :

command-line-arguments.jpg