the return of reflect.TypeOf should be generate by compile, i am trying to understand it, so i need to know where is code generate it in compiler. i need to know compiler parts. and i am curious about what is do in user code also. please tell me about it. i will be appriciated. On Thursday, August 13, 2020 at 10:47:28 PM UTC+8 Jan Mercl wrote:
> On Thu, Aug 13, 2020 at 3:53 PM xie cui <cuiw...@gmail.com> wrote: > > > ..., i know this type struct in generate by compiler, and i need to know > where is this code, and how to generate the struct fields and methods? > > To avoid the possibility of the XY problem, can you please tell more > about the goal of "generating struct fields and methods" and what > exactly is meant by that? Some things can be done by the compiler, > some in user code and the two feature sets are definitely not the > same. > -- 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/0d129845-a832-4ff4-ad4b-3e47227a8200n%40googlegroups.com.