diff --git a/README.md b/README.md index d4ddf61..a765de8 100644 --- a/README.md +++ b/README.md @@ -2,18 +2,22 @@ Package **opt** implements an **optional-type**, for the Go programming language. -In other programming languages, an **optional-type** might be know as: a **option type**, or a **maybe type**. +In other programming languages, an **optional-type** might be know as: a **option-type**, or a **maybe-type**. ## Documention -Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-opt +Online documentation, which includes examples, can be found at: http://godoc.org/sourcecode.social/reiver/go-opt -[![GoDoc](https://godoc.org/github.com/reiver/go-opt?status.svg)](https://godoc.org/github.com/reiver/go-opt) +[![GoDoc](https://godoc.org/sourcecode.social/reiver/go-opt?status.svg)](https://godoc.org/sourcecode.social/reiver/go-opt) ## Examples Here is an example **optional-type** that can hold a string: ```go +import "sourcecode.social/reiver/go-opt" + +// + var op opt.Optional[string] // the default value is nothing. // ... diff --git a/go.mod b/go.mod index 94f0417..d5d00c4 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/reiver/go-opt +module sourcecode.social/reiver/go-opt go 1.18 diff --git a/map_test.go b/map_test.go index 3116ad7..6fc654e 100644 --- a/map_test.go +++ b/map_test.go @@ -1,7 +1,7 @@ package opt_test import ( - "github.com/reiver/go-opt" + "sourcecode.social/reiver/go-opt" "testing" ) diff --git a/optional_filter_test.go b/optional_filter_test.go index 76f6b8c..4228c93 100644 --- a/optional_filter_test.go +++ b/optional_filter_test.go @@ -1,7 +1,7 @@ package opt_test import ( - "github.com/reiver/go-opt" + "sourcecode.social/reiver/go-opt" "testing" ) diff --git a/optional_get_test.go b/optional_get_test.go index e455f69..d732187 100644 --- a/optional_get_test.go +++ b/optional_get_test.go @@ -1,7 +1,7 @@ package opt_test import ( - "github.com/reiver/go-opt" + "sourcecode.social/reiver/go-opt" "testing" ) diff --git a/optional_gostring_test.go b/optional_gostring_test.go index d79b866..fb07823 100644 --- a/optional_gostring_test.go +++ b/optional_gostring_test.go @@ -1,7 +1,7 @@ package opt_test import ( - "github.com/reiver/go-opt" + "sourcecode.social/reiver/go-opt" "fmt" diff --git a/optional_whennothing_test.go b/optional_whennothing_test.go index 48f37ad..dc765ae 100644 --- a/optional_whennothing_test.go +++ b/optional_whennothing_test.go @@ -1,7 +1,7 @@ package opt_test import ( - "github.com/reiver/go-opt" + "sourcecode.social/reiver/go-opt" "testing" ) diff --git a/optional_whensomething_test.go b/optional_whensomething_test.go index d04c760..3eaf516 100644 --- a/optional_whensomething_test.go +++ b/optional_whensomething_test.go @@ -1,7 +1,7 @@ package opt_test import ( - "github.com/reiver/go-opt" + "sourcecode.social/reiver/go-opt" "testing" ) diff --git a/then_test.go b/then_test.go index 92cbd8e..760e83b 100644 --- a/then_test.go +++ b/then_test.go @@ -1,7 +1,7 @@ package opt_test import ( - "github.com/reiver/go-opt" + "sourcecode.social/reiver/go-opt" "testing" )