code: func (a TokenAlgo) hash(secret []byte) hash.Hash {
  	switch a {
  	case TokenAlgoHmacSHA256:
  		return hmac.New(sha256.New, secret)
  	}
  	return nil
  }
docs: // hash returns hash.Hash that computes the digest or nil if algo is unknown.