Go deep

All Articles

May 19, 2022

Constrain Struct Generic Field in Rust

It is a quite common need to constrain struct generic field to certain types in Rust. We usually have two different ways to implement this. Trait or dispatching each of them by ourselves.

May 18, 2021

Rust Merge Strings Alternately

This posts comes from the real project scenario. Later, I surprisedly find there is one problem in Leetcode. Personally I not a fan of solving Leetcode problems. Let's write a post here since they provide detailed descriptions.

August 04, 2020

How to Combine io.TeeReader and io.Pipe

This post can explain and show you how to combine io.TeeReader() and io.Pipe together in Golang. You can easily use bytes.Buffer with io.TeeReader() easily according to the official documents in here.

December 28, 2019

Atbash Cipher Code Refactoring Record

TThis comes from the main exercise of exercism in rust. I asked some friends from a small Rust community and I got these elegant codes. These codes are so beautiful and tricky. So I decide to write it down and hope it may be useful for you as well.

October 14, 2019

Code Refactoring of Bob - Exercism in Rust

This comes from the side exercise of exercism in rust. Mentor `gaetanww` helped me a lot on code refactoring and logical improvements advice with great patience and careful instruction. He even changed my attitude towards work and researching. I have nothing else to say to express my thanks to my mentor.

May 30, 2017

First Post

The theme of blog, which is next-geek, almost has been done. My only one purpose of doing this is to show off.

December 15, 2014

Example Post Formatting - English

This is a post description for meta purposes. This is also the excerpt of the article that shows up on the index/home page. Change this in the post YAML.