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

Editor

The second tool you will need is a good text editor or Integrated Development Environment (IDE). If you are not familiar with IDEs, they are basically text editors that are custom-built for writing applications for specific programming languages. One well-known IDE for Go is GoLand by JetBrains. This comes with built-in support for syntax highlighting, run and debug modes, built-in version control, and package management.

GoLand is available as a 30-day trial, after which you must buy a license to continue using it.

The following is a screenshot of the GoLand IDE displaying the standard Hello World program:

If you prefer to use a text editor, there are many available and they often have plugins for Go that make developing easier. Two of the best text editors available today are Visual Studio Code by Microsoft and Atom by GitHub. Both of these are general purpose editors that also have plugins for syntax highlighting, building, and running Go code. This way you can add what you need without too much overhead.

This screenshot is the same Hello World program, displayed in Visual Studio Code:

Finally, the Atom Version of the Hello World program looks like the following screenshot:

Both the Visual Studio Code and Atom are excellent choices for building Go applications due to the level of community support for the plugins, which I highly recommend installing. Alternatively, you can write Go programs in any text editor and run the code using your terminal or Command Prompt with the standard Go commands.

You will need a solid internet connection. A proper internet connection will eliminate errors connecting to different websites. If you are building a web scraper that sits behind a network firewall, or if you have a weak network connection, you may encounter difficulties accessing some of the sites used as examples in this book.
主站蜘蛛池模板: 准格尔旗| 九龙坡区| 平潭县| 中山市| 广灵县| 天全县| 扶绥县| 河源市| 濮阳县| 阿尔山市| 湖南省| 准格尔旗| 美姑县| 罗源县| 贡嘎县| 建瓯市| 石柱| 若羌县| 阆中市| 天长市| 秦安县| 光泽县| 凭祥市| 张家口市| 大渡口区| 营山县| 高阳县| 长岭县| 南京市| 永康市| 桓台县| 安义县| 七台河市| 河南省| 湘乡市| 黑龙江省| 麻城市| 阳朔县| 延长县| 温宿县| 邵阳市|