Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a Format method #22

Open
whyrusleeping opened this issue Apr 18, 2016 · 0 comments
Open

a Format method #22

whyrusleeping opened this issue Apr 18, 2016 · 0 comments

Comments

@whyrusleeping
Copy link
Member

whyrusleeping commented Apr 18, 2016

It would be pretty cool to have a Format method on multiaddrs that allows the caller to express how they want to print the multiaddr. For example:

maddr := Multiaddr("/ip4/127.0.0.1/tcp/5001")
maddr.Format("${IP}:${TCP}")

would print 127.0.0.1:5001

Stebalien pushed a commit that referenced this issue May 20, 2020
Update README URLs based on HTTP redirects
marten-seemann pushed a commit to marten-seemann/go-multiaddr that referenced this issue Feb 25, 2021
…actions

Consolidate abstractions and core types into go-libp2p-core (multiformats#28)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant