Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.17 KB

README.md

File metadata and controls

43 lines (28 loc) · 1.17 KB

trygo

Build Status Go Report Card GoDoc

Simple samples of golang witch goals to covers full feature of golang.

Description

  • 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.

Install

sudo apt-get install libgl1-mesa-dev xorg-dev # dependence

go get github.com/quchunguang/trygo
go get github.com/quchunguang/trygo/demos/...

Usage

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.