funcfunc1(s string)(n int, err error){deferfunc(){
log.Printf("func1(%q) = %d, %v", s, n, err)}()return7, io.EOF
}funcmain(){func1("Go")}```
## 2. 回调函数
```gofuncmain(){callback(1, Add)}funcAdd(a, b int){
fmt.Printf("The sum of %d and %d is: %d\n", a, b, a+b)}funccallback(y int, f func(int,int)){f(y,2)// this becomes Add(1, 2)}