Simple samples of golang witch goals to covers full feature of golang.
-
testlang.go - Small demos about golang language specification.
-
testlib.go - Small demos about golang standard packages.
-
simtool - Simulate some tools of unix/linux
-
eventframework - A simple event callback framework by golang.
-
cat - A demo impletements the unix-like
cat
command. -
demos/.../ - Standalone demos.
sudo apt-get install libgl1-mesa-dev xorg-dev # dependence
go get github.com/quchunguang/trygo
go get github.com/quchunguang/trygo/demos/...
Demos can be run separatly by testing. For example, we want to run DemoDefine(), we can,
go test -test.run TestDemoDefine
For one of standalone demo named testXXX, run testXXX
.