From 1772a36eb6bdd99f2d7fa5602d48ae7dcbfda0fc Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Sun, 1 Oct 2023 13:49:20 +0900 Subject: [PATCH] github.com/reiver/go-pathmatch -> sourcecode.social/reiver/go-pathmatch --- README.md | 10 +++++----- example_compile_test.go | 2 +- example_pattern_string_test.go | 2 +- go.mod | 5 +++++ go.sum | 2 ++ pattern_find_test.go | 2 +- pattern_match_test.go | 2 +- 7 files changed, 16 insertions(+), 9 deletions(-) create mode 100644 go.mod create mode 100644 go.sum diff --git a/README.md b/README.md index fae34f5..5e99625 100644 --- a/README.md +++ b/README.md @@ -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" ) // ... diff --git a/example_compile_test.go b/example_compile_test.go index aa4859e..b95a888 100644 --- a/example_compile_test.go +++ b/example_compile_test.go @@ -1,7 +1,7 @@ package pathmatch_test import ( - "github.com/reiver/go-pathmatch" + "sourcecode.social/reiver/go-pathmatch" "fmt" ) diff --git a/example_pattern_string_test.go b/example_pattern_string_test.go index da3f886..1fe8a01 100644 --- a/example_pattern_string_test.go +++ b/example_pattern_string_test.go @@ -1,7 +1,7 @@ package pathmatch_test import ( - "github.com/reiver/go-pathmatch" + "sourcecode.social/reiver/go-pathmatch" "fmt" "os" diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..59f98c0 --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module sourcecode.social/reiver/go-pathmatch + +go 1.20 + +require github.com/fatih/structs v1.1.0 // indirect diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..b4a69db --- /dev/null +++ b/go.sum @@ -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= diff --git a/pattern_find_test.go b/pattern_find_test.go index 8d845c0..feae75f 100644 --- a/pattern_find_test.go +++ b/pattern_find_test.go @@ -2,7 +2,7 @@ package pathmatch_test import ( - "github.com/reiver/go-pathmatch" + "sourcecode.social/reiver/go-pathmatch" "testing" ) diff --git a/pattern_match_test.go b/pattern_match_test.go index 0063f3d..b23c585 100644 --- a/pattern_match_test.go +++ b/pattern_match_test.go @@ -1,7 +1,7 @@ package pathmatch_test import ( - "github.com/reiver/go-pathmatch" + "sourcecode.social/reiver/go-pathmatch" "testing" )