From 4a66c02567e5d0a945a669b8d3abf0b86a0a6040 Mon Sep 17 00:00:00 2001 From: Jordan Orelli Date: Tue, 30 Dec 2014 17:39:46 -0500 Subject: [PATCH] move auth out to its own file --- auth.go | 14 ++++++++++++++ client.go | 9 --------- 2 files changed, 14 insertions(+), 9 deletions(-) create mode 100644 auth.go diff --git a/auth.go b/auth.go new file mode 100644 index 0000000..6a8db8c --- /dev/null +++ b/auth.go @@ -0,0 +1,14 @@ +package main + +import ( + "crypto/rsa" +) + +type Auth struct { + Nick string + Key *rsa.PublicKey +} + +func (a *Auth) Kind() string { + return "auth" +} diff --git a/client.go b/client.go index cb504da..c2e1237 100644 --- a/client.go +++ b/client.go @@ -18,15 +18,6 @@ import ( "unicode" ) -type Auth struct { - Nick string - Key *rsa.PublicKey -} - -func (a *Auth) Kind() string { - return "auth" -} - type ReadWriter struct { io.Reader io.Writer