"sourcecode.social/reiver/go-nul" -> "github.com/reiver/go-nul"

master
Charles Iliya Krempeaux 2024-08-01 16:28:38 -07:00
parent a70040250e
commit c65e9a7d47
14 changed files with 18 additions and 18 deletions

View File

@ -6,15 +6,15 @@ In other programming languages, an **optional-type** might be known as: a **opti
## Documention
Online documentation, which includes examples, can be found at: http://godoc.org/sourcecode.social/reiver/go-nul
Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-nul
[![GoDoc](https://godoc.org/sourcecode.social/reiver/go-nul?status.svg)](https://godoc.org/sourcecode.social/reiver/go-nul)
[![GoDoc](https://godoc.org/github.com/reiver/go-nul?status.svg)](https://godoc.org/github.com/reiver/go-nul)
## Examples
Here is an example **nullable** **optional-type** that can hold a string:
```go
import "sourcecode.social/reiver/go-nul"
import "github.com/reiver/go-nul"
//
@ -70,14 +70,14 @@ if found {
To import package **nul** use `import` code like the follownig:
```
import "sourcecode.social/reiver/go-nul"
import "github.com/reiver/go-nul"
```
## Installation
To install package **nul** do the following:
```
GOPROXY=direct go get https://sourcecode.social/reiver/go-nul
GOPROXY=direct go get https://github.com/reiver/go-nul
```
## Author

2
go.mod
View File

@ -1,4 +1,4 @@
module sourcecode.social/reiver/go-nul
module github.com/reiver/go-nul
go 1.18

View File

@ -3,7 +3,7 @@ package nul_test
import (
"testing"
"sourcecode.social/reiver/go-nul"
"github.com/reiver/go-nul"
)
func TestNullable_Filter_int(t *testing.T) {

View File

@ -3,7 +3,7 @@ package nul_test
import (
"testing"
"sourcecode.social/reiver/go-nul"
"github.com/reiver/go-nul"
)
func TestNullable_Get_string(t *testing.T) {

View File

@ -5,7 +5,7 @@ import (
"fmt"
"sourcecode.social/reiver/go-nul"
"github.com/reiver/go-nul"
)
func TestNullable_GoString(t *testing.T) {

View File

@ -3,7 +3,7 @@ package nul_test
import (
"testing"
"sourcecode.social/reiver/go-nul"
"github.com/reiver/go-nul"
)
func TestNullable_MarshalJSON_bool(t *testing.T) {

View File

@ -3,7 +3,7 @@ package nul_test
import (
"testing"
"sourcecode.social/reiver/go-nul"
"github.com/reiver/go-nul"
)
func TestNullable_MarshalJSON_int(t *testing.T) {

View File

@ -3,7 +3,7 @@ package nul_test
import (
"testing"
"sourcecode.social/reiver/go-nul"
"github.com/reiver/go-nul"
)
func TestNullable_MarshalJSON_string(t *testing.T) {

View File

@ -5,7 +5,7 @@ import (
"encoding/json"
"sourcecode.social/reiver/go-nul"
"github.com/reiver/go-nul"
)
func TestNullable_UnmarshalJSON_bool(t *testing.T) {

View File

@ -5,7 +5,7 @@ import (
"encoding/json"
"sourcecode.social/reiver/go-nul"
"github.com/reiver/go-nul"
)
func TestNullable_UnmarshalJSON_int(t *testing.T) {

View File

@ -5,7 +5,7 @@ import (
"encoding/json"
"sourcecode.social/reiver/go-nul"
"github.com/reiver/go-nul"
)
func TestNullable_UnmarshalJSON_string(t *testing.T) {

View File

@ -3,7 +3,7 @@ package nul_test
import (
"testing"
"sourcecode.social/reiver/go-nul"
"github.com/reiver/go-nul"
)
func TestNullable_WhenNothing_nothing(t *testing.T) {

View File

@ -3,7 +3,7 @@ package nul_test
import (
"testing"
"sourcecode.social/reiver/go-nul"
"github.com/reiver/go-nul"
)
func TestNullable_WhenNull_nothing(t *testing.T) {

View File

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