Primarily, get rid of extractCidString and cidVer. Neither of these functions
did sane things when a path when a path didn't actually include a CID. For
example, "boo" would yield a base32 encoder.
Also:
* Avoid "optional" errors.
* Make it a pure function of the input path.
* Extract the multibase from *any* type of path of the form
/namespace/cid-like-thing/... This is a DWIM function.
License: MIT
Signed-off-by:
Steven Allen <steven@stebalien.com>
| 名称 |
最后提交
|
最后更新 |
|---|---|---|
| .. | ||
| commands | 正在载入提交数据... | |
| coreapi | 正在载入提交数据... | |
| coredag | 正在载入提交数据... | |
| corehttp | 正在载入提交数据... | |
| corerepo | 正在载入提交数据... | |
| coreunix | 正在载入提交数据... | |
| mock | 正在载入提交数据... | |
| .gitignore | 正在载入提交数据... | |
| bootstrap.go | 正在载入提交数据... | |
| bootstrap_test.go | 正在载入提交数据... | |
| builder.go | 正在载入提交数据... | |
| core.go | 正在载入提交数据... | |
| core_test.go | 正在载入提交数据... | |
| pathresolver.go | 正在载入提交数据... | |
| pathresolver_test.go | 正在载入提交数据... |