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

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.

主站蜘蛛池模板: 麦盖提县| 广水市| 延川县| 连云港市| 马尔康县| 亳州市| 永宁县| 鱼台县| 唐山市| 威远县| 开平市| 紫云| 敖汉旗| 山西省| 平度市| 成安县| 怀远县| 深圳市| 淮北市| 元江| 济源市| 东乌珠穆沁旗| 南皮县| 赤水市| 武汉市| 宜良县| 安乡县| 大新县| 历史| 大港区| 崇文区| 香港 | 金溪县| 大安市| 安乡县| 沂源县| 许昌市| 东兰县| 什邡市| 驻马店市| 尤溪县|