commit 7afa1f6b496c637c2c90d723520f21ca54c91031 from: Dustin Sallings date: Wed Oct 29 22:39:54 2014 UTC Implemented client.Close() Because sometimes, clients don't stay connected forever. commit - b4367e1d7217b3cc118ce1c385d76ff554955172 commit + 7afa1f6b496c637c2c90d723520f21ca54c91031 blob - b2026fa867121a4422b1862579a262a2f52d58be blob + c64ac8c8af19d7f9fe23434e886760a7f0955c01 --- client/client.go +++ client/client.go @@ -35,6 +35,11 @@ func New(net, addr string) (*Client, error) { }, nil } +// Close this client. +func (c *Client) Close() error { + return c.conn.Close() +} + // Authenticate against an NNTP server using authinfo user/pass func (c *Client) Authenticate(user, pass string) (msg string, err error) { err = c.conn.PrintfLine("authinfo user %s", user)