摘要:
Golang代码 package main import ( "fmt" "strconv" "strings" ) type Treenode struct { Val int Left, Right *Treenode } func Serialization(node *Treenode) s 阅读全文
摘要:
Golang如何判断接口是否实现 package main type people interface { getage() int } type stu struct { Age int Name string } type staff struct { Age int Name string } 阅读全文
摘要:
Golang反射学习笔记 参考连接 package main import ( "fmt" "reflect" ) type common interface { Love(string) string } type people struct { Name string `json:"name"` 阅读全文