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

Setting up the project and running the development server

This is a building series book. It assumes you already know the basics of Go. If not, no worries. You can get a jump-start and learn the basics quickly from Go's official site at https://golang.org/. Writing a simple standalone program with Go is straightforward. But for big projects, we have to set up a clean project layout. For that reason, as a Go developer, you should know how Go projects are laid out and the best practices to keep your code clean.

Make sure you have done the following things before proceeding:

  • Install the Go compiler on your machine
  • Set the GOROOT and GOPATH environment variables

There are many online references from which you can get to know the preceding details. Depending on your machine type (Windows, Linux, or Mac OS X ), set up a working Go compiler. We will see more details about GOPATH in the following section.

主站蜘蛛池模板: 金阳县| 香河县| 望江县| 麻城市| 化德县| 陕西省| 河南省| 积石山| 东兰县| 赤城县| 华池县| 长垣县| 龙胜| 罗田县| 汾阳市| 徐闻县| 于田县| 广州市| 曲周县| 桐柏县| 尼木县| 搜索| 潼南县| 张家口市| 绥宁县| 东乌珠穆沁旗| 河北省| 隆化县| 锦州市| 嵊泗县| 日照市| 韶关市| 舞阳县| 平陆县| 昌平区| 工布江达县| 韩城市| 遂溪县| 康平县| 都匀市| 乌审旗|