fast

package
v0.0.0-...-95ecf59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2024 License: GPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAmulet

func IsAmulet(text string) (bool, int)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL