一段时间以前,我试图嵌入this answer中的以下提示。
// Has all methods of *sql.Row.
type myRow struct {
*sql.Row
}
但是,当我尝试https://play.golang.org/p/Vnyx4lTwISn时会引发错误cannot refer to unexported name os.fileStat
package main
import (
"fmt"
"os"
)
type myfilestat struct {
info *os.fileStat
}
func main() {
fmt.Println("Hello,playground")
}
能给我指出正确的方向吗?