转到syscall库代码说明[重复]

This question already has an answer here:

Can anyone explain the following piece of code from the syscall package in the Go standard library?

// /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)

There is no function body and also it is not an interface. What is it then?

</div>

The Go Programming Language Specification

Function declarations

A function declaration may omit the body. Such a declaration provides the signature for a function implemented outside Go, such as an assembly routine.


Read the documentation.