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

  • Security with Go
  • John Daniel Leon
  • 72字
  • 2021-06-30 19:06:43

Building multiple Go files

If a program is split into multiple files, you can pass all of them to the build command. For example, if you have a main.go file and an utility.go file containing extra functions, you could build them by running the following command:

go build main.go utility.go

If you tried to build main.go by itself, it would not be able to find the references to the functions in utility.go.

主站蜘蛛池模板: 乌苏市| 黄龙县| 加查县| 连州市| 陕西省| 申扎县| 吉林市| 青州市| 永德县| 永宁县| 房山区| 吴江市| 垦利县| 德保县| 安多县| 年辖:市辖区| 新沂市| 清远市| 义马市| 安平县| 普宁市| 汤阴县| 南华县| 济阳县| 桃江县| 荆门市| 凤凰县| 济阳县| 河间市| 大埔区| 澄迈县| 任丘市| 浦县| 平远县| 孝感市| 沙雅县| 渑池县| 定襄县| 和平县| 琼结县| 石家庄市|