我可以在Go的源代码中找到它们的实现make.
事实证明,"代码搜索"功能对于语言的这种中心功能几乎没用,我没有办法确定是否应该搜索C函数,Go函数或者什么.
同样在将来我如何在不诉诸此处的情况下弄清楚这种事情?(即:教我钓鱼)
编辑 PS我已经找到http://golang.org/pkg/builtin/#make,但是,与其他go包不同,它不包含指向源的链接,可能是因为它位于编译器的深处.
我无法找到内置函数的实现。
在builtin.go中,这是我发现的:
// The copy built-in function copies elements from a source slice
into a
// destination slice. (As a special case, it also will copy bytes
from a
// string to a slice of bytes.) The source and destination may
overlap. Copy
// returns the number of elements copied, which will be the minimum
of
// len(src) and len(dst).
func copy(dst, src []Type) int
Run Code Online (Sandbox Code Playgroud)
内置函数的实际实现在哪里?
go ×2