Skip to content

Instantly share code, notes, and snippets.

@Soreil
Created January 1, 2016 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Soreil/f1da24d1affd29bac684 to your computer and use it in GitHub Desktop.
Save Soreil/f1da24d1affd29bac684 to your computer and use it in GitHub Desktop.
Lovely little interface for Gtk.Bin embedders
type hideShower interface {
Hide()
Show()
IsVisible() bool
}
func toggle(h hideShower) {
if h.IsVisible() {
h.Hide()
} else {
h.Show()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment