Go language Implementation design pattern: Preface

Source: Internet
Author: User
This is a created article in which the information may have evolved or changed.

Blink of an eye 4 months of work, let me rejoice in the work, I have been exposed to always let me forget the go language. When I was a student, I was interested in the new language, but it was just a scratch. In these 4 months, the understanding of the go language from scratch, slowly deepened, I feel it more beautiful. Even my love for it goes beyond the C # that accompanies me.

The majority of the project team is the great God who wrote the kernel program, which makes the object-oriented concept not obvious in our current program. This undoubtedly gave me a big treasure, these not yet designed places, let me have the opportunity to achieve a reconstruction and transformation. Deepen your understanding of object-oriented.

I am a toddler learning the Go language and object-oriented, I am full of surprises every moment. This also makes me a thought, I want to use the go language to achieve 23 classic design patterns, in the code, the real understanding of the wisdom of the predecessors.

I started my process by flipping out that big liar design pattern and borrowing a "refactoring and model" from the company library. I don't know how many of these 23 patterns can be implemented in the go language with my ability, and do my best.

These articles, a great reference to the "Big Talk Design Model" in the story. The current implementation is the classic example inside. I still remember the first time to hold this book, and classmates with relish read that sentence: "Drink singing, life is really cool" when the joy and excitement, this book let me first know the beauty of programming, design beauty. Often in the heart recite this sentence "Caocao" poetry, I always think of not far away to the happy campus era.

Since many examples are escaping from the book "Big Talk Design mode," Please contact me if you are involved in copyright issues, I will replace the example.
The current implementations are:
1. Policy mode
2. Simple Factory mode

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.