Go语言学习

学习资料:

go官方教程:

go是google公司开发的语言.
Tutorial: Get started with Go:https://golang.google.cn/doc/tutorial/getting-started
Tutorials:https://golang.google.cn/doc/tutorial/

golang官网:
https://tour.golang.org/
https://golang.org/doc/effective_go.html

《The Go Programming Language》

该书被誉为:Go语言圣经
官网:http://www.gopl.io/

《Go程序设计语言》

《The Go Programming Language》的中文版
网址:https://flydk.gitbooks.io/go/content

https://www.kancloud.cn/hartnett/gopl-zh/126048
https://www.jishuchi.com/read/gopl/752

《Go by Example》

Go by Example 英文版:https://gobyexample.com/
Go by Example 中文版:https://gobyexample-cn.github.io/

在线编写Go

https://tip.golang.org/

Go下载与安装(windows版本)

下载:
https://golang.google.cn/doc/install?download=go1.16.windows-amd64.msi

Go官方教程:
Tutorial: Get started with Go:https://golang.google.cn/doc/tutorial/getting-started

IDE工具

GoLand:https://www.jetbrains.com/go/

常见异常

cannot run non-main package

go run helloworld.go
go run: cannot run non-main package

执行go run helloworld.go时报异常:go run: cannot run non-main package
原因:go的main方法只有在main的包下面才能执行,因此新建一个名为main的包,将helloworld.go放入这个包下面,然后运行即可

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值