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

Building a folder (package)

If a package contains multiple Go files that need to be built, it is tedious to pass each file to the build command. If you run go build with no arguments inside a folder, it will attempt to build all the .go files in the directory. If one of those files contains a package main statement at the top, it will generate an executable named after the directory name. If you write a program, it is possible to write a package that contains no main file and is used only as a library to be included in other projects.

主站蜘蛛池模板: 萝北县| 崇州市| 措勤县| 台州市| 五大连池市| 颍上县| 治多县| 定州市| 潍坊市| 石柱| 岑溪市| 乐亭县| 巴东县| 望谟县| 朝阳区| 三明市| 开平市| 武隆县| 湖南省| 丰都县| 通山县| 安龙县| 平远县| 屯昌县| 永登县| 清水县| 若羌县| 武山县| 汉中市| 襄樊市| 南充市| 隆安县| 宁国市| 德昌县| 青铜峡市| 都安| 宝兴县| 新建县| 呼伦贝尔市| 建湖县| 舒兰市|