On Tue, Aug 13, 2019 at 9:24 AM Volker Dobler <dr.volker.dob...@gmail.com> wrote:
> Yes, of course. It declares a new named type X, the underlying > type is Y which can be some predeclared type like int, some > other named declared type (like MyFooType) or a "type literal" > (a term I made up) like struct{X,Y float64; T string} or > map[string]bool or chan time.Time . "Type literal" is not made up, it's a well defined part of the specification: https://golang.org/ref/spec#TypeLit ;-) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAA40n-X5Vr0nhGeuysJaAK4Y8pqptOC6s9qDENnic9Xv0sT1iw%40mail.gmail.com.