Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAmulet ¶
IsAmulet determines if a string is an "amulet" by checking its SHA-256 hash. A string is considered an amulet if its hash contains 4 or more consecutive '8' characters. The input string must not exceed 64 characters in length.
Example:
isAmulet, count := IsAmulet("test")
Returns true and the count of consecutive 8s if it's an amulet, false and 0 otherwise.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.