GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - singcl/goo: The way to Go. Go之路.

BranchesTags
Open more actions menu

Latest commit

 

History

144 Commits
144 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
advanced
advanced
 
 
exe
exe
 
 
fs
fs
 
 
gin
gin
 
 
go-frontend/1-1
go-frontend/1-1
 
 
interfaces
interfaces
 
 
method
method
 
 
part_4
part_4
 
 
reflect
reflect
 
 
structs
structs
 
 
vendor
vendor
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
arrays.go
arrays.go
 
 
cars.go
cars.go
 
 
cgo_hello.go
cgo_hello.go
 
 
constants.go
constants.go
 
 
count_characters.go
count_characters.go
 
 
family_member.json
family_member.json
 
 
for.go
for.go
 
 
function_call_function.js
function_call_function.js
 
 
function_calls_function.go
function_calls_function.go
 
 
functions.go
functions.go
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
gogos.go
gogos.go
 
 
gotemplate.go
gotemplate.go
 
 
hello.go
hello.go
 
 
if-else.go
if-else.go
 
 
local_scope.go
local_scope.go
 
 
maps.go
maps.go
 
 
methods.go
methods.go
 
 
package1.go
package1.go
 
 
pinyin.go
pinyin.go
 
 
pointer.go
pointer.go
 
 
process.stdin.js
process.stdin.js
 
 
process.stdout.js
process.stdout.js
 
 
random.go
random.go
 
 
readPromise.js
readPromise.js
 
 
readSync.js
readSync.js
 
 
readSync2.js
readSync2.js
 
 
readinput1.go
readinput1.go
 
 
readline1.js
readline1.js
 
 
readline2.js
readline2.js
 
 
reboot.go
reboot.go
 
 
simple_web_server.go
simple_web_server.go
 
 
sizeof.go
sizeof.go
 
 
slices.go
slices.go
 
 
strings_splitjoin.go
strings_splitjoin.go
 
 
switch.go
switch.go
 
 
test.cmd
test.cmd
 
 
testcrash.go
testcrash.go
 
 
values.go
values.go
 
 
variables.go
variables.go
 
 
vcard.gob
vcard.gob
 
 
vcard.json
vcard.json
 
 
vscode_go_环境安装.md
vscode_go_环境安装.md
 
 

Repository files navigation

编译输出到指定目录

$ go build -o ./exe/values.exe ./values.go

实例来源

https://gobyexample.com/

About Learning Go

https://www.jianshu.com/p/5ee783bbdcac

VScode Go 环境搭建

https://www.cnblogs.com/Leo_wl/p/8242628.html

<<GO 入门指南>>

https://github.com/Unknwon/the-way-to-go_ZH_CN

JS 深入系列

https://github.com/mqyqingfeng/Blog

go

貌似 import 不能 import 相对路径--网上很多文章都说可以??the-way-to-go 实例中也说可以??

只能 import 绝对路径--即现在$GOPATH 的 src 下查找再在$GOROOT 的 src 下查找。

/advanced/13.4_panic_package.go 中就使用了相对路径包。

一个文件夹下只能包含一个自定义的 package,但是一个 package 可以在这个文件夹下分成多个文件。

go install 有 main 包的 go 项目和 没有 main 包的 go 项目

go install 不带参数可以直接在包所在的文件下执行 或者 go install + 包所在的文件夹名字 来安装

vscode GO 環境安裝 https://blog.csdn.net/wyy626562203/article/details/83833592

GO MODULES

wiki: https://github.com/golang/go/wiki/Modules

GOPROXY 设置

golang.org在国内无法访问,导致很多包下载不了。

解决方法一: 在github上找到镜像仓库clone到$GOPATH/src/golang.org/x/ 下面然后 go install 自行安装。

解决方式二: 设置goproxy:https://goproxy.cn/

go env -w GOPROXY=https://goproxy.cn,direct
echo "export GOPROXY=https://goproxy.cn" >> ~/.bash_profile    (MAC/LINUX)
source ./.bash_profile

About

The way to Go. Go之路.

Topics

gogolang

Resources

Readme
Activity

Stars

5 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.