diff --git a/README.md b/README.md index b574886..0021052 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # Go-Pattern -[![Test](https://github.com/PhakornKiong/go-pattern/actions/workflows/test.yml/badge.svg)](https://github.com/PhakornKiong/go-pattern/actions/workflows/test.yml) -[![codecov](https://codecov.io/gh/PhakornKiong/go-pattern/branch/master/graph/badge.svg?token=IL7G963OAF)](https://codecov.io/gh/PhakornKiong/go-pattern) -[![Go Report Card](https://goreportcard.com/badge/github.com/phakornkiong/go-pattern)](https://goreportcard.com/report/github.com/phakornkiong/go-pattern) -[![GoDoc](https://godoc.org/phakornkiong/go-pattern?status.svg)](https://godoc.org/github.com/phakornkiong/go-pattern) -[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/PhakornKiong/go-pattern/blob/master/LICENSE) +[![Test](https://github.com/PhakornKiong/go-pattern-match/actions/workflows/test.yml/badge.svg)](https://github.com/PhakornKiong/go-pattern-match/actions/workflows/test.yml) +[![codecov](https://codecov.io/gh/PhakornKiong/go-pattern-match/branch/master/graph/badge.svg?token=IL7G963OAF)](https://codecov.io/gh/PhakornKiong/go-pattern-match) +[![Go Report Card](https://goreportcard.com/badge/github.com/phakornkiong/go-pattern-match)](https://goreportcard.com/report/github.com/phakornkiong/go-pattern-match) +[![GoDoc](https://godoc.org/phakornkiong/go-pattern-match?status.svg)](https://godoc.org/github.com/phakornkiong/go-pattern-match) +[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/PhakornKiong/go-pattern-match/blob/master/LICENSE) Pattern Matching library for Go @@ -14,7 +14,7 @@ package main import ( "fmt" - "github.com/phakornkiong/go-pattern/pattern" + "github.com/phakornkiong/go-pattern-match/pattern" ) func match(input []int) string { @@ -414,10 +414,10 @@ match([]int{1001, 25, 3, 25001}) // "pattern 3" ## Examples -You can find more examples and usage scenarios [here](https://github.com/PhakornKiong/go-pattern/tree/master/example). Following are some of notable use case: +You can find more examples and usage scenarios [here](https://github.com/PhakornKiong/go-pattern-match/tree/master/example). Following are some of notable use case: -- [fxStrategy](https://github.com/PhakornKiong/go-pattern/blob/master/example/fxstrategy/main.go) -- [switchUnion](https://github.com/PhakornKiong/go-pattern/blob/master/example/switchunion/main.go) +- [fxStrategy](https://github.com/PhakornKiong/go-pattern-match/blob/master/example/fxstrategy/main.go) +- [switchUnion](https://github.com/PhakornKiong/go-pattern-match/blob/master/example/switchunion/main.go) These files a demonstrate its common use case. You may also refer to the test file for more information diff --git a/example/fibonacci/main.go b/example/fibonacci/main.go index a55b72c..7f0013e 100644 --- a/example/fibonacci/main.go +++ b/example/fibonacci/main.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/phakornkiong/go-pattern/pattern" + "github.com/phakornkiong/go-pattern-match/pattern" ) func Fib(input int) (output int) { diff --git a/example/fxstrategy/main.go b/example/fxstrategy/main.go index a7f27e4..c0125e0 100644 --- a/example/fxstrategy/main.go +++ b/example/fxstrategy/main.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/phakornkiong/go-pattern/pattern" + "github.com/phakornkiong/go-pattern-match/pattern" ) const ( diff --git a/example/slice/main.go b/example/slice/main.go index 0b7487b..36f7e6d 100644 --- a/example/slice/main.go +++ b/example/slice/main.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/phakornkiong/go-pattern/pattern" + "github.com/phakornkiong/go-pattern-match/pattern" ) func match(input []int) string { diff --git a/example/string/main.go b/example/string/main.go index 6a37c77..25e06ca 100644 --- a/example/string/main.go +++ b/example/string/main.go @@ -4,7 +4,7 @@ import ( "fmt" "regexp" - "github.com/phakornkiong/go-pattern/pattern" + "github.com/phakornkiong/go-pattern-match/pattern" ) func match(input string) string { diff --git a/example/switchunion/main.go b/example/switchunion/main.go index 5d87986..f5570bc 100644 --- a/example/switchunion/main.go +++ b/example/switchunion/main.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/phakornkiong/go-pattern/pattern" + "github.com/phakornkiong/go-pattern-match/pattern" ) func FoodSorter(input string) (output string) { diff --git a/example/withInput/main.go b/example/withInput/main.go index 110c2a8..65f8fc1 100644 --- a/example/withInput/main.go +++ b/example/withInput/main.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/phakornkiong/go-pattern/pattern" + "github.com/phakornkiong/go-pattern-match/pattern" ) func match(input string) string { diff --git a/example/withvalues/main.go b/example/withvalues/main.go index 85f7b28..4157e98 100644 --- a/example/withvalues/main.go +++ b/example/withvalues/main.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/phakornkiong/go-pattern/pattern" + "github.com/phakornkiong/go-pattern-match/pattern" ) func match(input []int) string { diff --git a/go.mod b/go.mod index 200f5ce..1ccdf8c 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/phakornkiong/go-pattern +module github.com/phakornkiong/go-pattern-match go 1.20