Initialize a go package
Create a folder. Inside that folder execute the command:
go mod init {name_of_package}
.
This will create a folder with name of package, and inside that a file called go.mod
.
Create a folder. Inside that folder execute the command:
go mod init {name_of_package}
.
This will create a folder with name of package, and inside that a file called go.mod
.