If you are using GOPATH, you may get strange errors such as libraries that cannot be imported. I will mention it because it may be solved by using go.mod of GoModules.
go mod init example.com/m
Type. This will create go.mod in the root directory. After go.mod is created, type go build When you build, the library written in import will be downloaded automatically. The downloaded library will be written to go.mod. Like this ↓ #### **`[go.mod]`** ```mod] module example.com go 1.15 require github.com/labstack/echo/v4 v4.1.17
go.mod is created and used for each project. A file called go.sum is also automatically generated, but don't worry!
here for the explanation of the module part