This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
observ := observable.NewObservable(g, 0) | |
observ.OnChanged(g, func(new observable.Object, old observable.Object) { | |
if new.(int) < 1 { | |
return | |
} | |
fmt.Println("First set", new, "(", old,") call gets", observ.Get()); | |
}) | |
observ.OnChanged(g, func(new observable.Object, old observable.Object) { | |
if new.(int) < 1 { |