github.com/unionj-cloud/go-doudou/v2@v2.3.5/toolkit/astutils/testdata/alias.go (about) 1 package main 2 3 import ( 4 "github.com/unionj-cloud/go-doudou/v2/esutils" 5 "time" 6 ) 7 8 // comment for alia age 9 type age int 10 11 type Event struct { 12 Name string 13 EventType int 14 } 15 16 type TestAlias struct { 17 esutils.Base 18 Age age 19 School []struct { 20 Name string 21 Addr struct { 22 Zip string 23 Block string 24 Full string 25 } 26 } 27 EventChan chan Event 28 SigChan chan int 29 Callback func(string) bool 30 CallbackN func(param string) bool 31 } 32 33 type ta TestAlias 34 35 type TT time.Time 36 37 type mm map[string]interface{} 38 39 type MyInter interface { 40 Speak() error 41 } 42 43 type starM *time.Time