摘要: 为什么需要使用单例模式 type WebConfig struct { Port int } func GetConfig() *WebConfig { return &WebConfig{Port: 8080} } func main() { a := GetConfig() b := GetCo 阅读全文
posted @ 2022-03-01 11:54 JaydenQiu 阅读(163) 评论(0) 推荐(0)