Skip to content
Snippets Groups Projects
Commit 63cc68a2 authored by jkerdreu's avatar jkerdreu
Browse files

Added dumper


git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Go/trunk/xaal-lib/apps@3109 b32b6428-25c9-4566-ad07-03861ab6144f
parent 4b063170
No related branches found
No related tags found
No related merge requests found
package main
import (
"fmt"
"os"
"os/signal"
xAALLib "xAAL/lib"
)
func showMessage(msg *xAALLib.Message) {
if msg.IsAttributesChange() {
msg.Dump()
}
}
func main() {
eng := xAALLib.NewEngine()
eng.Start()
eng.Subscribe(showMessage)
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt)
<-c
fmt.Println("Exiting")
eng.Stop()
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment