# README
go-path
go-path is a helper package that provides utilities for parsing and using ipfs paths
ā This repo is no longer maintained.
š We highly recommend switching to the maintained version at https://github.com/ipfs/boxo/tree/main/path. šļø Good news! There is tooling and documentation to expedite a switch in your repo.
ā ļø If you continue using this repo, please note that security fixes will not be provided (unless someone steps in to maintain it).
š Learn more, including how to take the maintainership mantle or ask questions, here.
Table of Contents
TODO
This package could probably be merged into go-ipld, or something along those lines. It doesnt really make sense as its own standalone thing.
License
MIT Ā© Juan Batiz-Benet
# Packages
Package resolver implements utilities for resolving paths within ipfs.
# Functions
FromCid safely converts a cid.Cid type to a Path type.
FromSegments returns a path given its different segments.
FromString safely converts a string type to a Path type.
Join joins strings slices using /
Deprecated: use github.com/ipfs/boxo/path.Join.
ParseCidToPath takes a CID in string form and returns a valid ipfs Path.
ParsePath returns a well-formed ipfs Path.
SplitAbsPath clean up and split fpath.
SplitList splits strings usings /
Deprecated: use github.com/ipfs/boxo/path.SplitList.
# Structs
Deprecated: use github.com/ipfs/boxo/path.ErrInvalidPath.
# Type aliases
A Path represents an ipfs content path: - <cid>/path/to/file - /ipfs/<cid> - /ipns/<cid>/path/to/folder - etc
Deprecated: use github.com/ipfs/boxo/path.Path.