Example #1
0
func main() {
	data := 0
	go func() {
		data = 1
		C.Notify()
	}()
	C.Wait()
	_ = data
}
Example #2
0
func Notify(cli *_Ctype_pc_client_t) {
	js := C.Add(C.CString("content"), C.CString("hi all"))
	C.Notify(cli, C.CString("chat.chatHandler.notifyall"), js)
}