Go 转到syscall库代码解释
有人能解释一下Go标准库中syscall包中的以下代码吗Go 转到syscall库代码解释,go,Go,有人能解释一下Go标准库中syscall包中的以下代码吗 // /usr/local/Cellar/go/1.10/libexec/src/syscall/syscall.go // // // Getpagesize and Exit are provided by the runtime func Getpagesize() int func Exit(code int) 没有函数体,也不是接口。那是什么 函数声明可以省略主体。这种声明规定: 在Go之外实现的函数的签名,例如
// /usr/local/Cellar/go/1.10/libexec/src/syscall/syscall.go
//
//
// Getpagesize and Exit are provided by the runtime
func Getpagesize() int
func Exit(code int)
没有函数体,也不是接口。那是什么
函数声明可以省略主体。这种声明规定:
在Go之外实现的函数的签名,例如
装配程序
阅读文档