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

  • 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.

主站蜘蛛池模板: 卢氏县| 娱乐| 平江县| 金坛市| 昆山市| 象州县| 德江县| 肃宁县| 德保县| 林西县| 通渭县| 襄城县| 白河县| 南康市| 红安县| 磐安县| 永春县| 日照市| 闽侯县| 青浦区| 新宾| 武冈市| 阿坝| 昭苏县| 萍乡市| 拉萨市| 阳信县| 皮山县| 墨竹工卡县| 平山县| 延吉市| 阳曲县| 乐亭县| 若尔盖县| 广饶县| 德令哈市| 永泰县| 淳安县| 新绛县| 含山县| 宣城市|