How does the Go1 compiler work?

前端 未结 3 1831
小鲜肉
小鲜肉 2020-12-02 01:25

I\'ve been dabbling with Go for about a month for a school project and I noticed the go/ast, go/token, go/parser, etc. packages in the src/pkg/go folder. However, the gc com

3条回答
  •  佛祖请我去吃肉
    2020-12-02 01:28

    does this tool depend on the packages I referenced above?

    The 'go' tool does depend on those packages

    if I added a new token to /go/token/token.go, would it be recognized by the new go compiler?

    No.

提交回复
热议问题