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

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.

主站蜘蛛池模板: 吴桥县| 桃江县| 亚东县| 遵义县| 阳曲县| 杭锦旗| 栖霞市| 什邡市| 九江市| 甘肃省| 河间市| 玉屏| 镶黄旗| 峨眉山市| 大洼县| 鄂伦春自治旗| 确山县| 云梦县| 沿河| 金华市| 霍州市| 简阳市| 临泉县| 出国| 水城县| 体育| 昭平县| 苏尼特左旗| 吴旗县| 界首市| 青川县| 高邑县| 高台县| 永胜县| 聂拉木县| 佛教| 扎鲁特旗| 淮安市| 光泽县| 通山县| 常宁市|