Skip to content

Commit 258a5b2

Browse files
committed
go
1 parent a664ba5 commit 258a5b2

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

pages/go/index.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<body class="layout bg" toc>
1313
<div class="body">
1414
<div class="inside">
15-
<h2>xxxxxxxx</h2>
15+
<h2>Start</h2>
1616
<script type="editor" data-lang="golang">
1717
package main
1818

@@ -25,33 +25,33 @@ <h2>xxxxxxxx</h2>
2525
<h2>CLI</h2>
2626
<script type="editor" data-lang="sh">
2727

28-
// more: https://github.com/stopsopa/go-lang-research
28+
# more: https://github.com/stopsopa/go-lang-research
2929

30-
go mod init https://go.dev/doc/tutorial/getting-started
30+
go mod init # https://go.dev/doc/tutorial/getting-started
3131
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
3333
# that will look through the code and find all
3434
import (
3535
"fmt"
3636

3737
"rsc.io/quote"
3838
)
39-
and will create block like
39+
# and will create block like
4040
require rsc.io/quote v1.5.2
41-
in go.mod file
41+
# in go.mod file
4242

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
4545

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
4848
# some experiments with that:
4949
go env GOPATH | tr -d '\n' to get path to go binaries installed globally
5050

5151
export PATH="${PATH}:$(go env GOPATH | tr -d '\n')/bin"
52-
add this to your ~/.bashrc or ~/.zshrc to mount installation
53-
you can override the path using:
54-
go env -w GOBIN=/path/to/your/bin https://go.dev/doc/tutorial/compile-install
52+
# add this to your ~/.bashrc or ~/.zshrc to mount installation
53+
# you can override the path using:
54+
go env -w GOBIN=/path/to/your/bin # https://go.dev/doc/tutorial/compile-install
5555

5656

5757

0 commit comments

Comments
 (0)