标签:def bug int import main ring std func UNC
package main
import (
"fmt"
"os"
)
func F() (int, string) {
return 1, "o"
}
func ff(a int, s string) {
fmt.Println(a)
fmt.Println(s)
}
func f(p []byte) {
p[1] = 2
}
func main() {
//ff(F())
var p []byte
if len(os.Args) == 3{
p = make([]byte, 2)
defer f(p)
defer fmt.Fprint(os.Stderr, "1\n")
fmt.Fprint(os.Stderr, "2\n")
}
fmt.Fprint(os.Stderr, "3\n")
}
标签:def bug int import main ring std func UNC
原文地址:https://www.cnblogs.com/Janly/p/14279334.html