type X Y declares a named type X with underlying type Y. A type alias is something completely different (look up "Alias declaration" in the Spec).
There are no such things like "type redefinition" or "type adapter" in Go. See the Spec again: It contains neither. So the main difference between a type alias and the other two is: The other two do not exist. V. On Tuesday, 13 August 2019 06:53:20 UTC+2, Sathish VJ wrote: > > And what is the difference between each of these: type alias, type > redefinition, type adapter. > -- 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/7a125b4f-4e51-4244-85f4-77e417cdb523%40googlegroups.com.