Package telnet provides TELNET and TELNETS client and server implementations, for the Go programming language, in a style similar to the "net/http" library that is part of the Go standard library, including support for "middleware"; TELNETS is secure TELNET, with the TELNET protocol over a secured TLS (or SSL) connection.
https://github.com/reiver/go-telnet/pull/22
https://github.com/reiver/go-telnet/pull/11
https://github.com/reiver/go-telnet/pull/13