Skip to content

Commit d342b58

Browse files
authored
Merge pull request #56 from thaJeztah/rm_deprecated_IsConsole
windows: remove deprecated IsConsole function
2 parents 7d8f197 + a4e129c commit d342b58

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

windows/console.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,6 @@ func GetHandleInfo(in interface{}) (uintptr, bool) {
2424
}
2525
}
2626

27-
// IsConsole returns true if the given file descriptor is a Windows Console.
28-
// The code assumes that GetConsoleMode will return an error for file descriptors that are not a console.
29-
//
30-
// Deprecated: use [windows.GetConsoleMode] or [golang.org/x/term.IsTerminal].
31-
func IsConsole(fd uintptr) bool {
32-
return isConsole(fd)
33-
}
34-
3527
func isConsole(fd uintptr) bool {
3628
var mode uint32
3729
err := windows.GetConsoleMode(windows.Handle(fd), &mode)

0 commit comments

Comments
 (0)