For example, if I'm printing an interface by calling print(), and then, It will call printiface(), I'm wondering what does go actually between these two statements.
关于内置函数的golang实现在哪里
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
2条回答 默认 最新
duanfen9983 2014-10-06 13:51关注From what I could gather,
printcalls turn intoprintstring,printiface, etc. at compile time. If you want to look at howprintcode is generated, you could be interested in this code insrc/cmd/gc/walk.c.本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报