摘要:
Golang语法简洁,但是也会因此带来一些比较难以察觉的坑点 比如以下代码(可直接编译运行): package main import "fmt" type Test struct { test string temp string } func main() { a := []Test{ Test 阅读全文
摘要:
记一次Golang的传参特性思考:周末本来想实现一次简单的链表头插操作,在链表增加元素时,一开始写出了以下代码: package main import "fmt" type MyLinkedList struct { Val int Next *MyLinkedList } func Constr 阅读全文