github.com/reiver/go-pathmatch -> sourcecode.social/reiver/go-pathmatch

master
Charles Iliya Krempeaux 2023-10-01 13:49:20 +09:00
parent 4e99dd5057
commit 1772a36eb6
7 changed files with 16 additions and 9 deletions

View File

@ -1,21 +1,21 @@
# 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).
## 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
```go
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:
```go
import (
"github.com/reiver/go-pathmatch"
"sourcecode.social/reiver/go-pathmatch"
)
// ...

View File

@ -1,7 +1,7 @@
package pathmatch_test
import (
"github.com/reiver/go-pathmatch"
"sourcecode.social/reiver/go-pathmatch"
"fmt"
)

View File

@ -1,7 +1,7 @@
package pathmatch_test
import (
"github.com/reiver/go-pathmatch"
"sourcecode.social/reiver/go-pathmatch"
"fmt"
"os"

5
go.mod 100644
View File

@ -0,0 +1,5 @@
module sourcecode.social/reiver/go-pathmatch
go 1.20
require github.com/fatih/structs v1.1.0 // indirect

2
go.sum 100644
View File

@ -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=

View File

@ -2,7 +2,7 @@ package pathmatch_test
import (
"github.com/reiver/go-pathmatch"
"sourcecode.social/reiver/go-pathmatch"
"testing"
)

View File

@ -1,7 +1,7 @@
package pathmatch_test
import (
"github.com/reiver/go-pathmatch"
"sourcecode.social/reiver/go-pathmatch"
"testing"
)