github.com/reiver/go-pathmatch -> sourcecode.social/reiver/go-pathmatch
parent
4e99dd5057
commit
1772a36eb6
10
README.md
10
README.md
|
@ -1,21 +1,21 @@
|
||||||
# go-pathmatch
|
# go-pathmatch
|
||||||
|
|
||||||
A library that provides *pattern matching* for paths, for the Go programming language.
|
A library that provides *pattern-matching* for paths, for the Go programming language.
|
||||||
|
|
||||||
For example, a path could be a file system path, or a path could be a path from a URL (such as an HTTP or HTTPS based URL).
|
For example, a path could be a file system path, or a path could be a path from a URL (such as an HTTP or HTTPS based URL).
|
||||||
|
|
||||||
|
|
||||||
## Documention
|
## Documention
|
||||||
|
|
||||||
Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-pathmatch
|
Online documentation, which includes examples, can be found at: http://godoc.org/sourcecode.social/reiver/go-pathmatch
|
||||||
|
|
||||||
[![GoDoc](https://godoc.org/github.com/reiver/go-pathmatch?status.svg)](https://godoc.org/github.com/reiver/go-pathmatch)
|
[![GoDoc](https://godoc.org/sourcecode.social/reiver/go-pathmatch?status.svg)](https://godoc.org/sourcecode.social/reiver/go-pathmatch)
|
||||||
|
|
||||||
|
|
||||||
## Example Usage
|
## Example Usage
|
||||||
```go
|
```go
|
||||||
import (
|
import (
|
||||||
"github.com/reiver/go-pathmatch"
|
"sourcecode.social/reiver/go-pathmatch"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ...
|
// ...
|
||||||
|
@ -51,7 +51,7 @@ fmt.Printf("vehicle_id = %q \n", vehicleId) // vehicle_id = "o_bcU.RZGK"
|
||||||
Alternatively:
|
Alternatively:
|
||||||
```go
|
```go
|
||||||
import (
|
import (
|
||||||
"github.com/reiver/go-pathmatch"
|
"sourcecode.social/reiver/go-pathmatch"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ...
|
// ...
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package pathmatch_test
|
package pathmatch_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/reiver/go-pathmatch"
|
"sourcecode.social/reiver/go-pathmatch"
|
||||||
|
|
||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package pathmatch_test
|
package pathmatch_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/reiver/go-pathmatch"
|
"sourcecode.social/reiver/go-pathmatch"
|
||||||
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
module sourcecode.social/reiver/go-pathmatch
|
||||||
|
|
||||||
|
go 1.20
|
||||||
|
|
||||||
|
require github.com/fatih/structs v1.1.0 // indirect
|
|
@ -0,0 +1,2 @@
|
||||||
|
github.com/fatih/structs v1.1.0 h1:Q7juDM0QtcnhCpeyLGQKyg4TOIghuNXrkL32pHAUMxo=
|
||||||
|
github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M=
|
|
@ -2,7 +2,7 @@ package pathmatch_test
|
||||||
|
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/reiver/go-pathmatch"
|
"sourcecode.social/reiver/go-pathmatch"
|
||||||
|
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package pathmatch_test
|
package pathmatch_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/reiver/go-pathmatch"
|
"sourcecode.social/reiver/go-pathmatch"
|
||||||
|
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue