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

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.

主站蜘蛛池模板: 石柱| 渝北区| 马龙县| 神农架林区| 许昌县| 白水县| 祁门县| 桦川县| 九江市| 会理县| 台东县| 北川| 黎平县| 平陆县| 应城市| 夏邑县| 上虞市| 连南| 穆棱市| 沾益县| 柘城县| 莲花县| 浑源县| 浪卡子县| 内江市| 舒城县| 霍城县| 繁昌县| 西华县| 平果县| 武鸣县| 华池县| 丰都县| 育儿| 宿迁市| 思茅市| 乐业县| 吴桥县| 三都| 汶川县| 龙里县|