Example #1
0
File: top.go Project: Laller/nocrud
func burnResults(vctx iface.ViewContext, key string, b []interface{}) {
	for i, v := range b {
		if i == 0 {
			vctx.Publish(key, v)
		} else {
			vctx.Publish(key+strconv.Itoa(i), v)
		}
	}
}