英文:
How to extract go builtin function code such as delete()
问题
我在Go的源代码(/go/src/builtin/builtin.go)中找到了内置函数,如下所示:
func delete(m map[Type]Type1, key Type)
但这不是源代码。谁能告诉我内置函数的源代码在哪里?
英文:
I have found the builtin function in go src (/go/src/builtin/builtin.go), as following:
func delete(m map[Type]Type1, key Type)
But this is not source code. Who can tell me where is the builtin function source code?
答案1
得分: 7
builtin.go
只是一个用于文档目的的文件,它不包含任何实现。
map
的实现在runtime/map.go
中。删除功能是在mapdelete
函数中实现的。
英文:
builtin.go
is simply a file for documentation purposes. It doesn't contain any implementations.
The map implementation is in runtime/map.go
. The delete functionality is implemented in the mapdelete
function.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论