# README
golang exercises
topic | description |
---|---|
hello-world | first golang sample: hello-world |
if-test | if statement test sample |
switch-test | switch statement test sample |
for-test | for statement test sample |
slice-test | slice test sample |
map-test | map test sample |
map-assert | map assertion sample |
interface-test | interface test sample |
channel-test | channel test sample |
generic-function | generic function sample |
dynamic-function | dynamic function sample |
panic-recover | panic recover sample |
amqp-simple-mode | amqp simple mode sample |
amqp-work-queue-mode | amqp work queue mode sample |
amqp-fanout-mode | amqp fanout mode sample |
amqp-direct-route-mode | amqp direct route mode sample |
amqp-topic-route-mode | amqp topic route mode sample |
amqp-rpc-mode | amqp rpc mode sample |
base64-encode | base64 encoding sample |
regular-expression | regular expression sample |
type-assert | type assertion sample |
learning go
Learning Go
is a primer ebook for studying golang, please refer to it.
topic | description |
---|---|
Q2 | For-loop exercise |
Q3 | FizzBuzz exercise |
Q4 | Strings exercise |
gopl
gopl
refers to "The Go Programming Language" book, written by Alan A.A.Donovan
and Brian W.Kernighan
.
topic | description |
---|---|
intset | An non-negativ integers set sample |
counter | Byte 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
*/.