From 737259eaba5b0b9aa6b33d82d19a2cb852c39a21 Mon Sep 17 00:00:00 2001 From: silenteh Date: Tue, 4 Aug 2015 17:00:43 +0200 Subject: [PATCH] Added warning to Totp struct --- totp.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/totp.go b/totp.go index d439bda..96f9b06 100644 --- a/totp.go +++ b/totp.go @@ -30,6 +30,8 @@ var ( initialization_failed_error = errors.New("Totp has not been initialized correctly") ) +// WARNING: The `Totp` struct should never be instantiated manually! +// Use the `NewTOTP` function type Totp struct { key []byte // this is the secret key counter [counter_size]byte // this is the counter used to synchronize with the client device