From df716e8fe04852bb5519d4d67d5a5d5c3731a795 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Sat, 23 Sep 2023 05:40:21 +0900 Subject: [PATCH] github.com/reiver/go-opt -> sourcecode.social/reiver/go-opt --- README.md | 10 +++++++--- go.mod | 2 +- map_test.go | 2 +- optional_filter_test.go | 2 +- optional_get_test.go | 2 +- optional_gostring_test.go | 2 +- optional_whennothing_test.go | 2 +- optional_whensomething_test.go | 2 +- then_test.go | 2 +- 9 files changed, 15 insertions(+), 11 deletions(-) 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" )