摘要:
1、继承后增加新字段 type Car struct { weight int name string } type Bike struct { Car lunzi int } 不过有个问题是vscode在使用Bike实例对象时,代码自动完成功能会显示一个Car,强迫症不能忍。 2、如果不增加新字段 阅读全文
posted @ 2021-08-27 18:39
zhaogaojian
阅读(63)
评论(0)
推荐(0)
摘要:
1、sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa 2、sudo apt-get update 3、sudo apt-get install mosquitto 4、sudo service mosquitto status 出现act 阅读全文
posted @ 2021-08-27 14:28
zhaogaojian
阅读(168)
评论(0)
推荐(0)
摘要:
Go中的日期格式好奇怪,真的就像玩具一样,不过功能也挺强大 package main import ( "fmt" "time" ) func main() { currentTime := time.Now() fmt.Println("Current Time in String: ", cur 阅读全文
posted @ 2021-08-27 00:17
zhaogaojian
阅读(621)
评论(0)
推荐(0)

浙公网安备 33010602011771号