Skip to content

Commit

Permalink
docs: archive
Browse files Browse the repository at this point in the history
  • Loading branch information
duanbiaowu committed Nov 9, 2023
1 parent 61df12f commit d2cd84f
Show file tree
Hide file tree
Showing 164 changed files with 8,390 additions and 101 deletions.
33 changes: 32 additions & 1 deletion content/menu/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,35 @@ headless: true
- [内联优化](../performance/inline.md)
- [内存对齐](../performance/memory_alignment.md)
- [逃逸分析](https://dbwu.tech/posts/goland_escape/)
- [singleflight](../performance/singleflight.md)
- [singleflight](../performance/singleflight.md)

---

### <a href="https://dbwu.tech/posts/golang_oop/" target="_blank">Go 面向对象编程</a>

---

### 📚 设计模式

- **创建型模式**
- <a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/creational/builder.go" target="_blank">构建</a>
- <a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/creational/factory.go" target="_blank">工厂</a>
- <a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/creational/object_pool.go" target="_blank">对象池</a>
- <a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/creational/singleton.go" target="_blank">单例</a>

- **结构性模式**
- <a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/structural/adapter.go" target="_blank">适配器</a>
- <a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/structural/decorator.go" target="_blank">装饰器</a>
- <a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/structural/proxy.go" target="_blank">代理</a>

- **行为型模式**
- <a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/behavioral/chain_of_responsibility.go" target="_blank">责任链</a>
- <a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/behavioral/observer.go" target="_blank">观察者</a>
- <a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/behavioral/state.go" target="_blank">状态</a>
- <a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/behavioral/strategy.go" target="_blank">策略</a>

- **其他模式**
- <a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/concurrency/" target="_blank">并发模式</a>
- <a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/idiom/" target="_blank">常用模式</a>
- <a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/k8s/visitor.go" target="_blank">K8S</a>
- <a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/mapreduce/real_world.go" target="_blank">MapReduce</a>
47 changes: 47 additions & 0 deletions pages/categories/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,53 @@ <h3 id="-高性能">
</ul>
</li>
</ul>
<hr>
<h3 id="a-hrefhttpsdbwutechpostsgolang_oop-target_blankgo-面向对象编程a">
<a href="https://dbwu.tech/posts/golang_oop/" target="_blank">Go 面向对象编程</a>
<a class="anchor" href="#a-hrefhttpsdbwutechpostsgolang_oop-target_blankgo-%e9%9d%a2%e5%90%91%e5%af%b9%e8%b1%a1%e7%bc%96%e7%a8%8ba">#</a>
</h3>
<hr>
<h3 id="-设计模式">
📚 设计模式
<a class="anchor" href="#-%e8%ae%be%e8%ae%a1%e6%a8%a1%e5%bc%8f">#</a>
</h3>
<ul>
<li>
<p><strong>创建型模式</strong></p>
<ul>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/creational/builder.go" target="_blank">构建</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/creational/factory.go" target="_blank">工厂</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/creational/object_pool.go" target="_blank">对象池</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/creational/singleton.go" target="_blank">单例</a></li>
</ul>
</li>
<li>
<p><strong>结构性模式</strong></p>
<ul>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/structural/adapter.go" target="_blank">适配器</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/structural/decorator.go" target="_blank">装饰器</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/structural/proxy.go" target="_blank">代理</a></li>
</ul>
</li>
<li>
<p><strong>行为型模式</strong></p>
<ul>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/behavioral/chain_of_responsibility.go" target="_blank">责任链</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/behavioral/observer.go" target="_blank">观察者</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/behavioral/state.go" target="_blank">状态</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/behavioral/strategy.go" target="_blank">策略</a></li>
</ul>
</li>
<li>
<p><strong>其他模式</strong></p>
<ul>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/concurrency/" target="_blank">并发模式</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/idiom/" target="_blank">常用模式</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/k8s/visitor.go" target="_blank">K8S</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/mapreduce/real_world.go" target="_blank">MapReduce</a></li>
</ul>
</li>
</ul>



Expand Down
47 changes: 47 additions & 0 deletions pages/engineering/base_config/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,53 @@ <h3 id="-高性能">
</ul>
</li>
</ul>
<hr>
<h3 id="a-hrefhttpsdbwutechpostsgolang_oop-target_blankgo-面向对象编程a">
<a href="https://dbwu.tech/posts/golang_oop/" target="_blank">Go 面向对象编程</a>
<a class="anchor" href="#a-hrefhttpsdbwutechpostsgolang_oop-target_blankgo-%e9%9d%a2%e5%90%91%e5%af%b9%e8%b1%a1%e7%bc%96%e7%a8%8ba">#</a>
</h3>
<hr>
<h3 id="-设计模式">
📚 设计模式
<a class="anchor" href="#-%e8%ae%be%e8%ae%a1%e6%a8%a1%e5%bc%8f">#</a>
</h3>
<ul>
<li>
<p><strong>创建型模式</strong></p>
<ul>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/creational/builder.go" target="_blank">构建</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/creational/factory.go" target="_blank">工厂</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/creational/object_pool.go" target="_blank">对象池</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/creational/singleton.go" target="_blank">单例</a></li>
</ul>
</li>
<li>
<p><strong>结构性模式</strong></p>
<ul>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/structural/adapter.go" target="_blank">适配器</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/structural/decorator.go" target="_blank">装饰器</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/structural/proxy.go" target="_blank">代理</a></li>
</ul>
</li>
<li>
<p><strong>行为型模式</strong></p>
<ul>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/behavioral/chain_of_responsibility.go" target="_blank">责任链</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/behavioral/observer.go" target="_blank">观察者</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/behavioral/state.go" target="_blank">状态</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/behavioral/strategy.go" target="_blank">策略</a></li>
</ul>
</li>
<li>
<p><strong>其他模式</strong></p>
<ul>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/concurrency/" target="_blank">并发模式</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/idiom/" target="_blank">常用模式</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/k8s/visitor.go" target="_blank">K8S</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/mapreduce/real_world.go" target="_blank">MapReduce</a></li>
</ul>
</li>
</ul>



Expand Down
47 changes: 47 additions & 0 deletions pages/engineering/benchstat/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,53 @@ <h3 id="-高性能">
</ul>
</li>
</ul>
<hr>
<h3 id="a-hrefhttpsdbwutechpostsgolang_oop-target_blankgo-面向对象编程a">
<a href="https://dbwu.tech/posts/golang_oop/" target="_blank">Go 面向对象编程</a>
<a class="anchor" href="#a-hrefhttpsdbwutechpostsgolang_oop-target_blankgo-%e9%9d%a2%e5%90%91%e5%af%b9%e8%b1%a1%e7%bc%96%e7%a8%8ba">#</a>
</h3>
<hr>
<h3 id="-设计模式">
📚 设计模式
<a class="anchor" href="#-%e8%ae%be%e8%ae%a1%e6%a8%a1%e5%bc%8f">#</a>
</h3>
<ul>
<li>
<p><strong>创建型模式</strong></p>
<ul>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/creational/builder.go" target="_blank">构建</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/creational/factory.go" target="_blank">工厂</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/creational/object_pool.go" target="_blank">对象池</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/creational/singleton.go" target="_blank">单例</a></li>
</ul>
</li>
<li>
<p><strong>结构性模式</strong></p>
<ul>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/structural/adapter.go" target="_blank">适配器</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/structural/decorator.go" target="_blank">装饰器</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/structural/proxy.go" target="_blank">代理</a></li>
</ul>
</li>
<li>
<p><strong>行为型模式</strong></p>
<ul>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/behavioral/chain_of_responsibility.go" target="_blank">责任链</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/behavioral/observer.go" target="_blank">观察者</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/behavioral/state.go" target="_blank">状态</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/behavioral/strategy.go" target="_blank">策略</a></li>
</ul>
</li>
<li>
<p><strong>其他模式</strong></p>
<ul>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/concurrency/" target="_blank">并发模式</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/idiom/" target="_blank">常用模式</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/k8s/visitor.go" target="_blank">K8S</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/mapreduce/real_world.go" target="_blank">MapReduce</a></li>
</ul>
</li>
</ul>



Expand Down
47 changes: 47 additions & 0 deletions pages/engineering/channel/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,53 @@ <h3 id="-高性能">
</ul>
</li>
</ul>
<hr>
<h3 id="a-hrefhttpsdbwutechpostsgolang_oop-target_blankgo-面向对象编程a">
<a href="https://dbwu.tech/posts/golang_oop/" target="_blank">Go 面向对象编程</a>
<a class="anchor" href="#a-hrefhttpsdbwutechpostsgolang_oop-target_blankgo-%e9%9d%a2%e5%90%91%e5%af%b9%e8%b1%a1%e7%bc%96%e7%a8%8ba">#</a>
</h3>
<hr>
<h3 id="-设计模式">
📚 设计模式
<a class="anchor" href="#-%e8%ae%be%e8%ae%a1%e6%a8%a1%e5%bc%8f">#</a>
</h3>
<ul>
<li>
<p><strong>创建型模式</strong></p>
<ul>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/creational/builder.go" target="_blank">构建</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/creational/factory.go" target="_blank">工厂</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/creational/object_pool.go" target="_blank">对象池</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/creational/singleton.go" target="_blank">单例</a></li>
</ul>
</li>
<li>
<p><strong>结构性模式</strong></p>
<ul>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/structural/adapter.go" target="_blank">适配器</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/structural/decorator.go" target="_blank">装饰器</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/structural/proxy.go" target="_blank">代理</a></li>
</ul>
</li>
<li>
<p><strong>行为型模式</strong></p>
<ul>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/behavioral/chain_of_responsibility.go" target="_blank">责任链</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/behavioral/observer.go" target="_blank">观察者</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/behavioral/state.go" target="_blank">状态</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/behavioral/strategy.go" target="_blank">策略</a></li>
</ul>
</li>
<li>
<p><strong>其他模式</strong></p>
<ul>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/concurrency/" target="_blank">并发模式</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/idiom/" target="_blank">常用模式</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/k8s/visitor.go" target="_blank">K8S</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/mapreduce/real_world.go" target="_blank">MapReduce</a></li>
</ul>
</li>
</ul>



Expand Down
47 changes: 47 additions & 0 deletions pages/engineering/command/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,53 @@ <h3 id="-高性能">
</ul>
</li>
</ul>
<hr>
<h3 id="a-hrefhttpsdbwutechpostsgolang_oop-target_blankgo-面向对象编程a">
<a href="https://dbwu.tech/posts/golang_oop/" target="_blank">Go 面向对象编程</a>
<a class="anchor" href="#a-hrefhttpsdbwutechpostsgolang_oop-target_blankgo-%e9%9d%a2%e5%90%91%e5%af%b9%e8%b1%a1%e7%bc%96%e7%a8%8ba">#</a>
</h3>
<hr>
<h3 id="-设计模式">
📚 设计模式
<a class="anchor" href="#-%e8%ae%be%e8%ae%a1%e6%a8%a1%e5%bc%8f">#</a>
</h3>
<ul>
<li>
<p><strong>创建型模式</strong></p>
<ul>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/creational/builder.go" target="_blank">构建</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/creational/factory.go" target="_blank">工厂</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/creational/object_pool.go" target="_blank">对象池</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/creational/singleton.go" target="_blank">单例</a></li>
</ul>
</li>
<li>
<p><strong>结构性模式</strong></p>
<ul>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/structural/adapter.go" target="_blank">适配器</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/structural/decorator.go" target="_blank">装饰器</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/structural/proxy.go" target="_blank">代理</a></li>
</ul>
</li>
<li>
<p><strong>行为型模式</strong></p>
<ul>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/behavioral/chain_of_responsibility.go" target="_blank">责任链</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/behavioral/observer.go" target="_blank">观察者</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/behavioral/state.go" target="_blank">状态</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/behavioral/strategy.go" target="_blank">策略</a></li>
</ul>
</li>
<li>
<p><strong>其他模式</strong></p>
<ul>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/concurrency/" target="_blank">并发模式</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/idiom/" target="_blank">常用模式</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/k8s/visitor.go" target="_blank">K8S</a></li>
<li><a href="https://github.com/duanbiaowu/go-examples-for-beginners/tree/master/patterns/mapreduce/real_world.go" target="_blank">MapReduce</a></li>
</ul>
</li>
</ul>



Expand Down
Loading

0 comments on commit d2cd84f

Please sign in to comment.