Versions in this module Expand all Collapse all v1 v1.2.0 Nov 11, 2023 Changes in this version + func CheckCode(secret string, period int64, digits int, targetCode string) bool + func CheckGoogleCode(secret string, targetCode string) bool + func GenerateCodeByPeriod(secret string, second int64, digits int) (string, error) + func GenerateCodeByTime(secret string, period int64, digits int) (string, error) + func GenerateGoogleCode(secret string) (string, error)