```
func NewLogBackend(out io.Writer, prefix string, flag int) *LogBackend {
if f, ok := out.(file); ok {
println(f)
b.f = f
}
return b
}
type file interface {
Fd() uintptr
}
out.(file)
```
out.(file)这个语法是怎么解释,菜鸟一只求问。。。?
源码地址:https://github.com/op/go-logging/blob/master/log_windows.go 第77行
有疑问加站长微信联系(非本文作者)