当前位置:网站首页>[Yugong series] go teaching course 003-ide installation and basic use in July 2022

[Yugong series] go teaching course 003-ide installation and basic use in July 2022

2022-07-04 22:18:00 InfoQ

Preface

IDE It means Integrated Development Environment, Integrated development environment .

Is an application used to provide a program development environment , Integrated code writing capabilities 、 Analysis function 、 Compilation function 、 Debugging functions and other integrated development software service suite , All software or software suites with this feature can be called integrated development environment .

One 、Go Linguistic IDE

1.Go Linguistic IDE

Go Linguistic IDE There are mainly the following :

  • Goland / Intellij Idea+Go plug-in unit
  • Paid apps ,Goland  It can only be carried out  Go  Language development , So relative to Intellij Idea The price is cheaper ;Intellij Idea Not only can  Go  Language development , You can do it  Java、PHP、Python And other language development , So its price is more expensive . Both are aimed at  Go The language development is the same , If already  Intellij Idea  It can be installed directly  Go  The plug-in can be used normally .
  • VS Code
  • A powerful modern lightweight code editor developed by Microsoft  IDE, Free and open source . In the face of  Go Language support , In some cases, it may not be as good as the above two paid applications , For example, some code refactoring or interface support level ; But even though  VS Code  In the face of  Go  There is a slight lack of support , But it doesn't affect our use of VS Code  To carry out  Go  Language development , And there will be some advantages in some full stack development .
  • other
  • Vim GO、LiteIDE、Atom etc. , Can be configured  Go  Language development work .

2.Goland

JetBrains  Official website :
https://www.jetbrains.com/go/download/#section=windows

null
Click to download  Download  Button , Download it locally .

3.Goland Use

Choose new =》go file

null
establish test.go file

package main

import "fmt"

func main() {
 fmt.Println("Hello, World!")
}

function test.go file

null
原网站

版权声明
本文为[InfoQ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/185/202207042147169154.html