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

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.

主站蜘蛛池模板: 龙门县| 苏尼特右旗| 泾源县| 北海市| 扶余县| 衡水市| 苏尼特右旗| 潮州市| 巫溪县| 政和县| 库伦旗| 安西县| 湘乡市| 义马市| 军事| 石阡县| 阿荣旗| 庆安县| 长武县| 兰考县| 扶风县| 桦南县| 津南区| 黔西县| 乐山市| 乳源| 巴东县| 阿克陶县| 蒙山县| 达州市| 岑溪市| 北碚区| 米脂县| 桐梓县| 华阴市| 永川市| 太康县| 大港区| 云龙县| 墨玉县| 贵州省|