Guest User

Untitled

a guest
May 8th, 2013
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.16 KB | None | 0 0
  1. type TestStruct struct {
  2.     TestString string
  3. }
  4.  
  5. func Test(i interface{}) {
  6.     // Remake i to a TestStruct again
  7. }
  8.  
  9. func main() {
  10.    
  11.     Test(new(TestStruct))
  12. }
Advertisement
Add Comment
Please, Sign In to add comment