Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update example code to use x/term instead of x/crypto/ssh/terminal #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

y-yagi
Copy link

@y-yagi y-yagi commented Oct 8, 2021

Because x/crypto/ssh/terminal is deprecated and moved to x/term.
https://pkg.go.dev/golang.org/x/crypto/ssh/terminal#pkg-overview

@hinshun
Copy link
Contributor

hinshun commented Oct 10, 2021

This will break compatibility with Go 1.13 though, is that right?

@y-yagi
Copy link
Author

y-yagi commented Oct 10, 2021

ssh/terminal is just the wrapper of x/term.
https://github.com/golang/crypto/blob/master/ssh/terminal/terminal.go

So the code that was originally working keeps working and doesn't break compatibility with Go 1.13 I think(I could confirm that the updated example code working with Go 1.13).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants