The go/types.Typ decl:

var Typ = []*Basic{
        Invalid:       {Invalid, 0, "invalid type"},

        Bool:          {Bool, IsBoolean, "bool"},
        Int:           {Int, IsInteger, "int"},
        Int8:          {Int8, IsInteger, "int8"},
        ...
}

Typ is a slice of pointer to Basic—got it; Basic is a struct—got it; the {Bool, 
IsBoolean, "bool"} stuff is clearly a Basic or *Basic—got it; but where is 
the map syntax coming from? How does that work?

-- 
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