August 2019
Beginner to intermediate
798 pages
17h 2m
English
In this section, we are going to see where and how Go stores the code and the information about the Go modules we are using, using our Go module as an example. Here are the contents of the ~/go/pkg/mod/github.com/mactsouk directory after using the presented Go module on my local macOS Mojave machine:
$ ls -lR ~/go/pkg/mod/github.com/mactsouk
total 0
drwxr-xr-x 3 mtsouk staff 96B Mar 2 22:38 my!module
dr-x------ 6 mtsouk staff 192B Mar 2 21:18 my!module@v1.0.0
dr-x------ 6 mtsouk staff 192B Mar 2 22:07 my!module@v1.1.0
/Users/mtsouk/go/pkg/mod/github.com/mactsouk/my!module:
total 0
dr-x------ 6 mtsouk staff 192B Mar 2 22:38 v2@v2.1.0
/Users/mtsouk/go/pkg/mod/github.com/mactsouk/my!module/v2@v2.1.0:
total 24
-r--r--r-- ...Read now
Unlock full access