Skip to content

Instantly share code, notes, and snippets.

@forestsource
Created February 7, 2017 06:56
Show Gist options
  • Select an option

  • Save forestsource/6864a030583aef6ee6c2e1bf0bb2a235 to your computer and use it in GitHub Desktop.

Select an option

Save forestsource/6864a030583aef6ee6c2e1bf0bb2a235 to your computer and use it in GitHub Desktop.
read Args in go
package main
import (
"os"
)
fmt.Println("os.Args: ", os.Args)
//output: string[./main arg1 arg2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment