On Tue, Jun 28, 2016 at 11:13 AM Michael Wain <michaelwain1...@gmail.com>
wrote:

> Why would I use *T over just T ?

Consider this program

        package main

        import (
                "fmt"
        )

        type T int

        func main() {
                var a, b T = 42, 314
                var i, j interface{} = a, &b
                fmt.Println(i.(T), *j.(*T))
        }

https://play.golang.org/p/mbXVkovY4G



-- 

-j

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to