https://github.com/moul/multipmuri
A library to parse project-management URIs (inspired by @multiformats)
https://github.com/moul/multipmuri
github gitlab jira multiformats project-management trello uri
Last synced: about 2 months ago
JSON representation
A library to parse project-management URIs (inspired by @multiformats)
- Host: GitHub
- URL: https://github.com/moul/multipmuri
- Owner: moul
- License: apache-2.0
- Created: 2019-07-23T16:19:56.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-21T14:13:25.000Z (10 months ago)
- Last Synced: 2025-01-24T05:51:09.954Z (3 months ago)
- Topics: github, gitlab, jira, multiformats, project-management, trello, uri
- Language: Go
- Homepage: https://manfred.life/golang
- Size: 81.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
- Authors: AUTHORS
Awesome Lists containing this project
README
# multipmuri
> A library to parse project-management URIs (inspired by @multiformats)
[](https://circleci.com/gh/moul/multipmuri)
[](https://godoc.org/moul.io/multipmuri)
[](https://github.com/moul/multipmuri/blob/master/LICENSE)
[](https://github.com/moul/multipmuri/releases)
[](https://goreportcard.com/report/moul.io/multipmuri)
[](https://www.codefactor.io/repository/github/moul/multipmuri)
[](https://codecov.io/gh/moul/multipmuri)
[](https://manfred.life/)## Usage
This libraries parses an URI that you could find in a README, markdown, comment field of the populat project-management tools.
You can use the library to parse an URI:
* without context (i.e. `github.com/moul/depviz#42`)
* with a context (i.e. `#42` in the context of `github.com/moul/depviz`)```golang
import "moul.io/multipmuri"depviz42, _ := multipmuri.DecodeString("github.com/moul/depviz#42")
fmt.Println(depviz42) // https://github.com/moul/depviz/issues/42depviz43, _ := depviz42.RelDecodeString("#43")
fmt.Println(depviz43) // https://github.com/moul/depviz/issues/43
```## Install
```console
$ go get -u moul.io/multipmuri
```## License
© 2019 [Manfred Touron](https://manfred.life) -
[Apache-2.0 License](https://github.com/moul/multipmuri/blob/master/LICENSE)