package
Version:
v0.2.13
Opens a new window with list of versions in this module.
Published: Jul 23, 2025
License: Unlicense
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var (
AuthRequired = R("auth-required")
PoW = R("pow")
Duplicate = R("duplicate")
Blocked = R("blocked")
RateLimited = R("rate-limited")
Invalid = R("invalid")
Error = R("error")
Unsupported = R("unsupported")
Restricted = R("restricted")
)
Msg constructs a properly formatted message with a machine-readable prefix
for OK and CLOSED envelopes.
R is the machine-readable prefix before the colon in an OK or CLOSED envelope message.
Below are the most common kinds that are mentioned in NIP-01.
B returns the R as a byte slice.
F allows creation of a full R text with a printf style format.
IsPrefix returns whether a text contains the same R prefix.
S returns the R as a string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.