title: How to get a list of values into a flag in Golang?
body: <p>What is Golang's equivalent of the below python commands ?</p>
  
  <pre><code>import argparse
  parser = argparse.ArgumentParser(description="something")
  parser.add_argument("-getList1",nargs='*',help="get 0 or more values")
  parser.add_argument("-getList2",nargs='?',help="get 1 or more values")
  </code></pre>
  
  <p>I have seen that the flag package allows argument parsing in Golang.
  But it seems to support only String, Int or Bool.
  How to get a list of values into a flag in this format :</p>
  
  <pre><code>go run myCode.go -getList1 value1 value2 
  </code></pre>