How to enter a filepath as a flag in CLI in Go and how to read the file contents?

前端 未结 0 708
天命终不由人
天命终不由人 2021-01-28 13:21

I want to enter a file path as a flag in my command line interface which I coded in Go. My ultimate goal is to read the content of that file whose path I enter as a flag. I trie

相关标签:
回答
  • 消灭零回复
提交回复
热议问题