How to run the first project with golang


Install the necessary environment

1. Download go SDK (I installed 1.9)

2. Download golang

3. Download git because some dependencies need to be obtained from GitHub with go get

4. Configure gopath


The execution file generated by bin

Intermediate file compiled by PKG

Code file of SRC program

There are three folders, and then put the project in SRC. Configure the gopath of idea


5. Select package for run kind


6. If there are dependencies to install, use go get


7. Final operation:


Postman test interface

This article about how to use GoLand to run the first project will be introduced here. For more information about GoLand running project, please search the previous articles of developeppaer or continue to browse the related articles below. I hope you can support developeppaer more in the future!

Recommended Today

What knowledge points have I gained by using vue3.0 (1)

The front-end development is full of flowers, and one skill is not yet mature.At a loss, I don’t know what to do. I pay close attention to the small editor’s success. I feel very busy recently. I don’t have much time to write articles. Today’s article is mainly about my early studyVue3.0Some of the notes […]