code: func GetFdInfo(in interface{}) (uintptr, bool) {
  	var inFd uintptr
  	var isTerminalIn bool
  	if file, ok := in.(*os.File); ok {
  		inFd = file.Fd()
  		isTerminalIn = IsTerminal(inFd)
  	}
  	return inFd, isTerminalIn
  }
docs: // GetFdInfo returns the file descriptor for an os.File and indicates whether the file represents a terminal.