V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
JKLee
V2EX  ›  Go 编程语言

go 设计模式,详细注解

  •  
  •   JKLee · 2019-10-11 14:35:18 +08:00 · 2735 次点击
    这是一个创建于 1649 天前的主题,其中的信息可能已经有所发展或是发生改变。

    Galong 的设计模式,总结设计模式就是以下两点

    1. struct 不依赖 interface
    2. interface 就是方法的装饰
    3. 设计模式就是对 struct 组合以及隐形接口继承的灵活运用 正在学习 go 语言的朋友欢迎参考一下 https://github.com/sevenelevenlee/go-patterns
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5004 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 09:54 · PVG 17:54 · LAX 02:54 · JFK 05:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.