Registry / networking / whyrusleeping-mafmt

whyrusleeping-mafmt

JSON →
library1.2.8gogounverified

Multiaddress format validation library for Go.

go get github.com/whyrusleeping/mafmt
INSTALL
IMPORT
SIG · WHYRUSLEEPING-MAFM
W
whyrusleeping-mafmt
networkinggov1.2.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mafmt
github.com/whyrusleeping/mafmt

Checks if a multiaddr matches a specific protocol pattern.

package main import ( "fmt" mafmt "github.com/whyrusleeping/mafmt" ma "github.com/multiformats/go-multiaddr" ) func main() { addr, _ := ma.NewMultiaddr("/ip4/127.0.0.1/tcp/8080") fmt.Println(mafmt.TCP.Matches(addr)) // true }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.8latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
OpenAI (training)
1
Resources
whyrusleeping-mafmt — go get whyrusleeping-mafmt · libregistry