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

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 jump start and learn them quickly from Go's official site at https://golang.org/. Go uses a different way of developing projects. Writing a standalone, simple program doesn't bother you much. But after learning the basics, people try to advance a step further. 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 Go compiler on your machine
  • Set 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 macOS X), set up a working Go compiler. We see more details about GOPATH in the following section.

主站蜘蛛池模板: 霍城县| 疏勒县| 宣城市| 襄城县| 石城县| 巢湖市| 元江| 濮阳市| 肥乡县| 塔城市| 枣庄市| 龙井市| 准格尔旗| 古浪县| 全南县| 方正县| 宁南县| 淳安县| 兴业县| 西贡区| 安福县| 攀枝花市| 伊川县| 大渡口区| 吕梁市| 莱芜市| 天峨县| 长沙市| 资中县| 山阴县| 旅游| 东光县| 深泽县| 彭泽县| 阜新市| 泾源县| 祁连县| 桦甸市| 衡水市| 永川市| 佳木斯市|