- 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.
推薦閱讀
- 線性代數(shù)選講
- 幾何原本
- 數(shù)學(xué)建模:算法與編程實(shí)現(xiàn)
- Blockchain Quick Reference
- 粗糙集的論域擴(kuò)展理論及在專(zhuān)家系統(tǒng)中的應(yīng)用
- 數(shù)學(xué)的雨傘下:理解世界的樂(lè)趣
- 物性數(shù)學(xué)及其應(yīng)用
- 幾何之美
- 數(shù)字、代數(shù)和圖象(全彩版)
- 丈量世界:時(shí)間、空間與數(shù)學(xué)(萬(wàn)物皆數(shù)學(xué))
- 數(shù)學(xué)多大點(diǎn)事兒
- 概率論與數(shù)理統(tǒng)計(jì)
- 微積分的力量
- 別萊利曼的趣味幾何學(xué)
- 幾何和統(tǒng)計(jì)(全彩版)