12
12
< body class ="layout bg " toc >
13
13
< div class ="body ">
14
14
< div class ="inside ">
15
- < h2 > xxxxxxxx </ h2 >
15
+ < h2 > Start </ h2 >
16
16
< script type ="editor " data-lang ="golang ">
17
17
package main
18
18
@@ -25,33 +25,33 @@ <h2>xxxxxxxx</h2>
25
25
< h2 > CLI</ h2 >
26
26
< script type ="editor " data-lang ="sh ">
27
27
28
- // more: https://github.com/stopsopa/go-lang-research
28
+ # more: https://github.com/stopsopa/go-lang-research
29
29
30
- go mod init https://go.dev/doc/tutorial/getting-started
30
+ go mod init # https://go.dev/doc/tutorial/getting-started
31
31
go mod init example / hello
32
- go mod tidy https://go.dev/doc/tutorial/getting-started
32
+ go mod tidy # https://go.dev/doc/tutorial/getting-started
33
33
# that will look through the code and find all
34
34
import (
35
35
"fmt"
36
36
37
37
"rsc.io/quote"
38
38
)
39
- and will create block like
39
+ # and will create block like
40
40
require rsc . io / quote v1 .5 .2
41
- in go . mod file
41
+ # in go . mod file
42
42
43
- go run . https :/ / go . dev / doc / tutorial / getting - started
44
- go build https://go.dev/doc/tutorial/compile-install
43
+ go run . # https :/ / go . dev / doc / tutorial / getting - started
44
+ go build # https://go.dev/doc/tutorial/compile-install
45
45
46
- go list - f '{{.Target}}' https://go.dev/doc/tutorial/compile-install
47
- https://pkg.go.dev/cmd/go#hdr-List_packages_or_modules
46
+ go list - f '{{.Target}}' # https :/ / go . dev / doc / tutorial / compile - install
47
+ # https://pkg.go.dev/cmd/go#hdr-List_packages_or_modules
48
48
# some experiments with that:
49
49
go env GOPATH | tr - d '\n' to get path to go binaries installed globally
50
50
51
51
export PATH = "${PATH}:$(go env GOPATH | tr -d '\n')/bin"
52
- add this to your ~ / .b a s h r c o r ~ / . zshrc to mount installation
53
- you can override the path using :
54
- go env - w GOBIN = / p a t h / to/ your / bin https ://go.dev/doc/tutorial/compile-install
52
+ # add this to your ~ / .b a s h r c o r ~ / . zshrc to mount installation
53
+ # you can override the path using :
54
+ go env - w GOBIN = / p a t h / to/ your / bin # https :/ / go . dev / doc / tutorial / compile - install
55
55
56
56
57
57
0 commit comments