Split main.go to separate example source files

Signed-off-by: Jacky Boen <aqiank@gmail.com>