<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>Let's Learn Go on Shaowen Chen's Website</title><link>https://www.chenshaowen.com/en/tags/lets-learn-go/</link><description>Recent content in Let's Learn Go on Shaowen Chen's Website</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>&amp;copy;2016 - {year}, All Rights Reserved.</copyright><lastBuildDate>Fri, 04 Sep 2020 00:00:00 +0000</lastBuildDate><sy:updatePeriod>weekly</sy:updatePeriod><atom:link href="https://www.chenshaowen.com/en/tags/lets-learn-go/atom.xml" rel="self" type="application/rss+xml"/><item><title>Let's Learn Go -- (6) Interface</title><link>https://www.chenshaowen.com/en/blog/let-us-start-learning-go-6.html</link><pubDate>Fri, 04 Sep 2020 00:00:00 +0000</pubDate><atom:modified>Fri, 04 Sep 2020 00:00:00 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/let-us-start-learning-go-6.html</guid><description>1. Interface-Oriented Programming 1.1 Characteristics Interface-oriented programming emphasizes interaction between modules through interfaces. First, the caller specifies a set of method signatures; then, the callee implements that set of methods.
What sets interface programming apart from other programming styles is that it focuses on methods, not attributes. In many programming scenarios, methods are defined around attributes.</description><dc:creator>微信公众号</dc:creator><category>Go</category><category>Let's Learn Go</category><category>Interface</category><category>Learning</category></item><item><title>Let's Learn Go -- (5) Goroutine and Channel</title><link>https://www.chenshaowen.com/en/blog/let-us-start-learning-go-5.html</link><pubDate>Thu, 03 Sep 2020 00:00:00 +0000</pubDate><atom:modified>Thu, 03 Sep 2020 00:00:00 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/let-us-start-learning-go-5.html</guid><description>1. The Concurrency Model in Go 1.1 The Communication Model: CSP CSP stands for Communicating Sequential Process, a model for concurrent communication. A Process can use many Channels, and a Channel does not care who is using it — it is only responsible for sending and receiving data.
In the Go community there is a very famous maxim: do not communicate by sharing memory; instead, share memory by communicating.</description><dc:creator>微信公众号</dc:creator><category>Go</category><category>Concurrency</category><category>Parallelism</category><category>Goroutine</category><category>Channel</category><category>Learning</category><category>Let's Learn Go</category></item><item><title>Let's Learn Go -- (3) Go Modules</title><link>https://www.chenshaowen.com/en/blog/let-us-start-learning-go-3.html</link><pubDate>Tue, 23 Jul 2019 00:00:00 +0000</pubDate><atom:modified>Tue, 23 Jul 2019 00:00:00 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/let-us-start-learning-go-3.html</guid><description>1. Go&amp;rsquo;s Package Management Mechanisms 1.1 GOPATH GOPATH pulls code with the go get command and places it in the GOPATH directory. The problems with GOPATH are: It cannot manage package versions It uses a global repository, so it cannot isolate projects effectively 1.2 Vendor Starting with version 1.5, Go</description><dc:creator>微信公众号</dc:creator><category>Go</category><category>GoModules</category><category>Let's Learn Go</category><category>Learning</category><category>R&amp;D</category><category>Package Management</category></item><item><title>Let's Learn Go -- (2) Data and Logic Structures</title><link>https://www.chenshaowen.com/en/blog/let-us-start-learning-go-2.html</link><pubDate>Wed, 05 Jun 2019 00:00:00 +0000</pubDate><atom:modified>Wed, 05 Jun 2019 00:00:00 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/let-us-start-learning-go-2.html</guid><description>1. Go&amp;rsquo;s Data Structures Basic types
Boolean: bool Integer: byte, int, int8, int16, uint, uintptr Floating point: float32, float64 Complex: complex64, complex128 String: string Character: rune Error: error Composite types
Pointer: pointer Array: array Slice: slice Dictionary: map Channel: chan Struct: struct Interface: interface A Go variable identifier is made up of letters, digits, and underscores, and its first character cannot be a digit.</description><dc:creator>微信公众号</dc:creator><category>Go</category><category>Let's Learn Go</category><category>Types</category><category>Data Structures</category></item></channel></rss>