摘要: 客户端代码 package main import ( "bufio" "fmt" "net" "os" "strings" ) func main() { // 连接服务端 conn, err := net.Dial("tcp", "127.0.0.1:8888") if err != nil { 阅读全文
posted @ 2021-10-03 10:15 楠海 阅读(34) 评论(0) 推荐(0)
摘要: 复制到自己的编辑器, 从main函数看 package main import ( "fmt" "reflect" ) func reflectTest01(b interface{}) { //通过反射获取的传入的变量的 type , kind, 值 //1. 先获取到 reflect.Type 阅读全文
posted @ 2021-10-03 09:23 楠海 阅读(32) 评论(0) 推荐(0)