More documentation.

This commit is contained in:
Kyle
2014-04-24 20:37:00 -06:00
parent 459e9f880f
commit 84250b0501
6 changed files with 41 additions and 10 deletions

1
otp.go
View File

@@ -66,6 +66,7 @@ func otpString(otp OTP) string {
return fmt.Sprintf("%s, %d", typeName, otp.Size())
}
// FromURL constructs a new OTP token from a URL string.
func FromURL(URL string) (OTP, string, error) {
u, err := url.Parse(URL)
if err != nil {