我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何提取内置函数代码,例如delete()

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?

builtin.go is simply a file for documentation purposes. It doesn't contain any implementations.

The map implementation is in runtime/hashmap.go. The delete functionality is implemented in the mapdelete function.

近期文章

  • DeepEqual对待以反向滴答声初始化的数组是否有所不同?
  • 仅当条件为真时,如何在go中创建变量?
  • 我可以将字符串作为bufio.ReadString()的分隔符吗?
  • 带有绝对路径的golang“不匹配软件包”错误,相对路径很好
  • Golang的这一行到底做什么? 为什么要指针? 为什么使用0参数?
  • Golang,Ajax-如何在成功函数中返回切片或结构?
  • 了解Go中的接口
  • 如何将对象存储在结构中
  • Go界面中的设计决策{}
  • Golang:如何编写包含字符串和数组的映射?
  • 无法在函数中定义变量-Go
  • 我可以在map [string] interface {}上定义一个函数吗
  • 返回菜单语言GO
  • 用日志包附加到当前行
  • 通过Go中的界面修改结构成员
  • 如何将Go time.Time转换为MySQL datetime? [关闭]
  • 在网络上读和写Conn
  • 评估代码片段作为字符串存储在数据库中
  • 使用反射使所有属性为小写还是大写?
  • 如何在golang中将字符串递归连接到类型为string的数组

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华