In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
Today, I would like to share with you how to use Eclipse to write Go programs related to knowledge, detailed content, clear logic, I believe that most people still know too much about this knowledge, so share this article for your reference, I hope you will learn something after reading this article, let's take a look at it.
Eclipse
Eclipse is also a very common development tool, the following describes how to use Eclipse to write Go programs.
Eclipse edits the main interface of Go
First download and install Eclipse
Download the goclipse plug-in
Download gocode, code completion hint for go
Github address of gocode:
Https://github.com/nsf/gocode
To install git under Windows, you usually use msysgit.
Then install it under cmd:
Go get-u github.com/nsf/gocode
You can also download the code and compile it directly with go build, which will generate gocode.exe
Download MinGW and install it as required
Configure plug-in
Windows- > Reference- > Go
(1). Configure the compiler of Go
Set up some basic information about Go
(2) configure Gocode (optional, code completion), and set the Gocode path to the previously generated gocode.exe file
Set gocode information
(3) configure GDB (optional, for debugging), and set the GDB path to the gdb.exe file in the MingW installation directory
Set GDB information
Whether the test was successful
Create a new go project, and then create a hello.go. As shown below:
Create a new project edit file
Debug as follows (to debug with input commands in console):
Figure 1.16 debugging the Go program
These are all the contents of the article "how to use Eclipse to write Go programs". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.