Go offline (optional)
This tour is also available as a stand-alone program that you can use without access to the internet. It builds and runs the code samples on your own machine.
To run the tour locally, you'll need to first install Go and then run:
go install golang.org/x/website/tour@latest
This will place a tour
binary in your GOPATH's bin
directory. When you run the tour program, it will open a web browser displaying your local version of the tour.
Of course, you can continue to take the tour through this web site.
-------------------------
Microsoft Windows [Version 10.0.19043.1165]
(c) Microsoft Corporation. All rights reserved.
C:\Users\kian>go install golang.org/x/website/tour@latest
go: downloading golang.org/x/website/tour v0.0.0-20210616181959-e0d934b43647
go: downloading golang.org/x/website v0.0.0-20210819192600-f2061a3bae73
go: downloading golang.org/x/tools v0.1.3-0.20210525215409-a3eb095d6aee
C:\Users\kian>
-----------------
بعد از نصب جهت اجرا در شاخه
C:\Users\kian\go\bin
فایل را اجرا می کنیم
tour.exetour.exe
آدرس دسترسی بعد از اجرای فایل
2021/08/20 14:08:44 Serving content from C:\Users\kian\go\pkg\mod\golang.org\x\website\tour@v0.0.0-20210616181959-e0d934b43647
2021/08/20 14:08:44 A browser window should open. If not, please visit http://127.0.0.1:3999
2021/08/20 14:08:44 accepting connection from: 127.0.0.1:51506
2021/08/20 14:09:21 running snippet from: 127.0.0.1:51506