摘要: // 服务结构体 type Server struct { opts options //可选参数变量 addr string } //可选参数列表 type options struct { A int B string C bool D int } // 为可选参数赋值的函数 type ServerOption func(*options)... 阅读全文
posted @ 2019-09-21 19:37 zmlgo 阅读(3299) 评论(0) 推荐(0)