官术网_书友最值得收藏!

Running a single Go file

You don't have to build a file and get an executable if you only want to run it. The go run option allows you to run the .go file without leaving an executable behind. You can still pass in arguments as if it was a regular executable, like this:

go run example.go arg1 arg2
主站蜘蛛池模板: 宣化县| 承德市| 平乐县| 遵义市| 科技| 平和县| 兴业县| 白河县| 综艺| 吉安县| 阿拉善盟| 罗甸县| 柏乡县| 凉城县| 双鸭山市| 漠河县| 临清市| 邯郸县| 通道| 丹巴县| 成都市| 华蓥市| 城口县| 惠安县| 宁海县| 广平县| 阿勒泰市| 乐昌市| 新乡市| 大冶市| 沅江市| 七台河市| 株洲市| 福鼎市| 淮安市| 北票市| 苗栗市| 拜城县| 澄迈县| 中阳县| 婺源县|