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

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

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.

主站蜘蛛池模板: 蓬安县| 灌云县| 大荔县| 讷河市| 开平市| 遵义市| 壶关县| 忻州市| 大化| 辽阳县| 乌拉特后旗| 故城县| 华坪县| 陆丰市| 惠安县| 山阳县| 安徽省| 木里| 贡觉县| 盖州市| 增城市| 喀什市| 大城县| 泰宁县| 陈巴尔虎旗| 邵阳市| 土默特左旗| 泾源县| 星座| 巨野县| 永昌县| 昌吉市| 宁夏| 平凉市| 仪陇县| 定结县| 宁夏| 山丹县| 建德市| 雅安市| 公安县|