main.go 229 B

123456789101112131415161718
  1. package main
  2. import (
  3. "fmt"
  4. "os"
  5. )
  6. func main(){
  7. //fmt.Printf("Program Name: %s\n", len(os.Args))
  8. fmt.Println("Program Name: ", len(os.Args))
  9. for _, value := range os.Args {
  10. fmt.Println("Program value: ", value)
  11. }
  12. }