Skip to content

Instantly share code, notes, and snippets.

@thomaswhitcomb
Created February 20, 2014 19:42
Show Gist options
  • Save thomaswhitcomb/9121624 to your computer and use it in GitHub Desktop.
Save thomaswhitcomb/9121624 to your computer and use it in GitHub Desktop.
Generalized "read access" wrapper
func wrapper(x interface{}) func() interface{} {
var xx = x
return func() interface{}{
return xx
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment