diff --git a/example/basicauth/main.go b/example/basicauth/main.go index edee49b8910..3c55ed18992 100644 --- a/example/basicauth/main.go +++ b/example/basicauth/main.go @@ -23,7 +23,7 @@ import ( "syscall" "github.com/google/go-github/v53/github" - "golang.org/x/crypto/ssh/terminal" + "golang.org/x/term" ) func main() { @@ -32,7 +32,7 @@ func main() { username, _ := r.ReadString('\n') fmt.Print("GitHub Password: ") - bytePassword, _ := terminal.ReadPassword(int(syscall.Stdin)) + bytePassword, _ := term.ReadPassword(int(syscall.Stdin)) password := string(bytePassword) tp := github.BasicAuthTransport{ diff --git a/example/tagprotection/main.go b/example/tagprotection/main.go index e68b9c300eb..aecc60bfa9f 100644 --- a/example/tagprotection/main.go +++ b/example/tagprotection/main.go @@ -20,7 +20,7 @@ import ( "syscall" "github.com/google/go-github/v53/github" - "golang.org/x/crypto/ssh/terminal" + "golang.org/x/term" ) func main() { @@ -39,7 +39,7 @@ func main() { pattern = strings.TrimSpace(pattern) fmt.Print("GitHub Token: ") - byteToken, _ := terminal.ReadPassword(int(syscall.Stdin)) + byteToken, _ := term.ReadPassword(int(syscall.Stdin)) println() token := string(byteToken) diff --git a/example/tokenauth/main.go b/example/tokenauth/main.go index 03ae076d7b8..4cfe0f5b2da 100644 --- a/example/tokenauth/main.go +++ b/example/tokenauth/main.go @@ -15,12 +15,12 @@ import ( "syscall" "github.com/google/go-github/v53/github" - "golang.org/x/crypto/ssh/terminal" + "golang.org/x/term" ) func main() { fmt.Print("GitHub Token: ") - byteToken, _ := terminal.ReadPassword(int(syscall.Stdin)) + byteToken, _ := term.ReadPassword(int(syscall.Stdin)) println() token := string(byteToken)