I went about Go for about a month for a school project, and I noticed packages go / ast, go / token, go / parser, etc. in the src / pkg / go folder. However, the gc compiler was based on C files located in src / cmd / gc.
My question is about the new go command in Go1, which builds and runs programs: does this tool depend on the packages I referenced above? those. if I add a new token to /go/token/token.go, will it be recognized by the new go compiler?
source
share