rubyhan1314 / golang-100-days Goto Github PK
View Code? Open in Web Editor NEWGolang - 100天从新手到大师
Golang - 100天从新手到大师
另外qfgolang的网络编程部分也缺失,go redis的部分其实是java操作redis的
我按照 tutorial 给出的,使用 openssl 在本地生成了私钥和证书文件,服务端、客户端都添加上 TLS 认证。
但是当客户端调用远程过程时报错了:
rpc error: code = Unavailable desc = connection error: desc = "transport: authentication handshake failed: x509: certificate relies on legacy Common Name field, use SANs or temporarily enable Common Name matching with GODEBUG=x509ignoreCN=0"
我尝试了更换服务端、客户端的端口,但结果还是一样。
烦请知道的前辈指点一二。
line 19,27 为何不直接resp和respSync使用float32?
初始化数组中 {} 中的元素个数不能大于 [] 中的数字。
如果忽略 [] 中的数字不设置数组大小,Go 语言会根据元素的个数来设置数组的大小:
var balance = []float32{1000.0, 2.0, 3.4, 7.0, 50.0}
utils.SwitchTimeStampToData 这个函数怎么实现时间转换的,源代码里面没有呢。。
golang中的反射解析结构体标签tag
很多方法在utils里都不存在
在day07最后一部分,1.5 append() 和 copy() 函数中,运行结果是错误的
正确结果如下
len=0 cap=0 slice=[]
len=1 cap=1 slice=[0]
len=2 cap=2 slice=[0 1]
len=6 cap=6 slice=[0 1 2 3 4 5]
len=6 cap=12 slice=[0 1 2 3 4 5]
建议在这里详细讲一下append的扩容
Day4243 - Gin框架50 - 项目实战二
Day44 - MySQL数据库高级
Day45 - Git
Day46
Day51 - Node.js
Day52 - Vue
Day53 - Redis数据库
三、功能
‘常量只能是数字’ 描述不准确吧
当go3写完成后,并不是每次go2读操作结束后,go1写操作才开始。
打印的结果有go2、go1会交替进行的情况。
2 正在读取数据: reading。。。
1 正在写: writing。。。
2 读结束: read over...
1 写结束: write over..
难道是系统的原因?我是win7系统,go是1.12.7版本。
谢谢韩茹老师了
go 中接口与结构体是如何区分呢?
有一部分丢失是咋回事
InitMysql()那里忘记讲啦。。。
Hey, this repo looks really interesting, I wanna give it a chance and try everything cause I am not really confident with Golang , just wander if there are any English based forks if this project or if there are any plans to translate it . Thanks in advance
由于疫情的原因,好多培训机构都关门了,作者是因为这个原因不会在更新了吗?
package main
import (
"fmt"
)
func main() {
name := "Hello World"
for i:= 0; i < len(s); i++ {
fmt.Printf("%d ", s[i])
}
fmt.Printf("\n")
for i:= 0; i < len(s); i++ {
fmt.Printf("%c ",s[i])
}
}
这段的 name := "Hello World" 应该要修正为 s:= "Hello World"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.