diff options
| author | 2023-03-20 11:05:46 +0100 | |
|---|---|---|
| committer | 2023-03-20 11:05:46 +0100 | |
| commit | 4096e7076a56d67c6926edc1b3acc5b9445af788 (patch) | |
| tree | bdc2c17abd56561afd9ed79b8cc9679047bffd1d /vendor/github.com/leodido/go-urn/README.md | |
| parent | [bugfix] Use account ID host as accDomain if 2nd webfinger lookup fails (#1630) (diff) | |
| download | gotosocial-4096e7076a56d67c6926edc1b3acc5b9445af788.tar.xz | |
[chore]: Bump github.com/go-playground/validator/v10 (#1637)
Bumps [github.com/go-playground/validator/v10](https://github.com/go-playground/validator) from 10.11.2 to 10.12.0.
- [Release notes](https://github.com/go-playground/validator/releases)
- [Commits](https://github.com/go-playground/validator/compare/v10.11.2...v10.12.0)
---
updated-dependencies:
- dependency-name: github.com/go-playground/validator/v10
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/github.com/leodido/go-urn/README.md')
| -rw-r--r-- | vendor/github.com/leodido/go-urn/README.md | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/vendor/github.com/leodido/go-urn/README.md b/vendor/github.com/leodido/go-urn/README.md index cc902ec0e..731eecbb5 100644 --- a/vendor/github.com/leodido/go-urn/README.md +++ b/vendor/github.com/leodido/go-urn/README.md @@ -1,4 +1,4 @@ -[](https://travis-ci.org/leodido/go-urn) [](https://codecov.io/gh/leodido/go-urn) [](https://godoc.org/github.com/leodido/go-urn) +[](https://app.circleci.com/pipelines/github/leodido/go-urn) [](https://codecov.io/gh/leodido/go-urn) [](https://godoc.org/github.com/leodido/go-urn) **A parser for URNs**. @@ -52,4 +52,30 @@ no/19/urn:UrN:NSS__________________________________/-4 20000000 399 ns --- +## Example +```go +package main + +import ( + "fmt" + "github.com/leodido/go-urn" +) + +func main() { + var uid = "URN:foo:a123,456" + + u, ok := urn.Parse([]byte(uid)) + if !ok { + panic("error parsing urn") + } + + fmt.Println(u.ID) + fmt.Println(u.SS) + + // Output: + // foo + // a123,456 +} +``` + [](https://github.com/igrigorik/ga-beacon)
\ No newline at end of file |
