[go-nuts] How to get an alias in a type alias ???
package main import ( "log" "reflect" ) type AAA = int func main() { var a AAA = 5 x := reflect.TypeOf(a) log.Println(x.Name()) // print int } How to get AAA ??? -- You received this message because you are subscribed to the Google
Re: [go-nuts] How to get an alias in a type alias ???
Thank you, I understand 在 2018年3月6日星期二 UTC+8上午2:51:39,Ian Lance Taylor写道: > > On Mon, Mar 5, 2018 at 1:35 AM, He Liu > wrote: > > > > package main > > > > > > import ( > > > > "log" > > > > "reflect" &g