Categorygithub.com/ewangplay/golang-exercises

# README

golang exercises

topicdescription
hello-worldfirst golang sample: hello-world
if-testif statement test sample
switch-testswitch statement test sample
for-testfor statement test sample
slice-testslice test sample
map-testmap test sample
map-assertmap assertion sample
interface-testinterface test sample
channel-testchannel test sample
generic-functiongeneric function sample
dynamic-functiondynamic function sample
panic-recoverpanic recover sample
amqp-simple-modeamqp simple mode sample
amqp-work-queue-modeamqp work queue mode sample
amqp-fanout-modeamqp fanout mode sample
amqp-direct-route-modeamqp direct route mode sample
amqp-topic-route-modeamqp topic route mode sample
amqp-rpc-modeamqp rpc mode sample
base64-encodebase64 encoding sample
regular-expressionregular expression sample
type-asserttype assertion sample

learning go

Learning Go is a primer ebook for studying golang, please refer to it.

topicdescription
Q2For-loop exercise
Q3FizzBuzz exercise
Q4Strings exercise

gopl

gopl refers to "The Go Programming Language" book, written by Alan A.A.Donovan and Brian W.Kernighan.

topicdescription
intsetAn non-negativ integers set sample
counterByte Counter, Word Counter, Line Counter implement satisfied to Writer Interface

# Packages

No description provided by the author
No description provided by the author
Channel test for transfer data between multi-goroutines.
该例子用来演示如何动态创建函数的实现。 1.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
该例子用来演示如何针对interfac{}类型的变量做类型确认(type assertion) (1) resultOfType, boolean := expression.(Type) // Checked (2) resultOfType := expression.(Type) // Unchecked; panic() on failure */.