"sourcecode.social/reiver/go-nul" -> "github.com/reiver/go-nul"
parent
a70040250e
commit
c65e9a7d47
10
README.md
10
README.md
|
@ -6,15 +6,15 @@ In other programming languages, an **optional-type** might be known as: a **opti
|
||||||
|
|
||||||
## Documention
|
## 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
|
## Examples
|
||||||
|
|
||||||
Here is an example **nullable** **optional-type** that can hold a string:
|
Here is an example **nullable** **optional-type** that can hold a string:
|
||||||
```go
|
```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:
|
To import package **nul** use `import` code like the follownig:
|
||||||
```
|
```
|
||||||
import "sourcecode.social/reiver/go-nul"
|
import "github.com/reiver/go-nul"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
To install package **nul** do the following:
|
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
|
## Author
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
||||||
module sourcecode.social/reiver/go-nul
|
module github.com/reiver/go-nul
|
||||||
|
|
||||||
go 1.18
|
go 1.18
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ package nul_test
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"sourcecode.social/reiver/go-nul"
|
"github.com/reiver/go-nul"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNullable_Filter_int(t *testing.T) {
|
func TestNullable_Filter_int(t *testing.T) {
|
||||||
|
|
|
@ -3,7 +3,7 @@ package nul_test
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"sourcecode.social/reiver/go-nul"
|
"github.com/reiver/go-nul"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNullable_Get_string(t *testing.T) {
|
func TestNullable_Get_string(t *testing.T) {
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"sourcecode.social/reiver/go-nul"
|
"github.com/reiver/go-nul"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNullable_GoString(t *testing.T) {
|
func TestNullable_GoString(t *testing.T) {
|
||||||
|
|
|
@ -3,7 +3,7 @@ package nul_test
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"sourcecode.social/reiver/go-nul"
|
"github.com/reiver/go-nul"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNullable_MarshalJSON_bool(t *testing.T) {
|
func TestNullable_MarshalJSON_bool(t *testing.T) {
|
||||||
|
|
|
@ -3,7 +3,7 @@ package nul_test
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"sourcecode.social/reiver/go-nul"
|
"github.com/reiver/go-nul"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNullable_MarshalJSON_int(t *testing.T) {
|
func TestNullable_MarshalJSON_int(t *testing.T) {
|
||||||
|
|
|
@ -3,7 +3,7 @@ package nul_test
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"sourcecode.social/reiver/go-nul"
|
"github.com/reiver/go-nul"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNullable_MarshalJSON_string(t *testing.T) {
|
func TestNullable_MarshalJSON_string(t *testing.T) {
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"sourcecode.social/reiver/go-nul"
|
"github.com/reiver/go-nul"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNullable_UnmarshalJSON_bool(t *testing.T) {
|
func TestNullable_UnmarshalJSON_bool(t *testing.T) {
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"sourcecode.social/reiver/go-nul"
|
"github.com/reiver/go-nul"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNullable_UnmarshalJSON_int(t *testing.T) {
|
func TestNullable_UnmarshalJSON_int(t *testing.T) {
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"sourcecode.social/reiver/go-nul"
|
"github.com/reiver/go-nul"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNullable_UnmarshalJSON_string(t *testing.T) {
|
func TestNullable_UnmarshalJSON_string(t *testing.T) {
|
||||||
|
|
|
@ -3,7 +3,7 @@ package nul_test
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"sourcecode.social/reiver/go-nul"
|
"github.com/reiver/go-nul"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNullable_WhenNothing_nothing(t *testing.T) {
|
func TestNullable_WhenNothing_nothing(t *testing.T) {
|
||||||
|
|
|
@ -3,7 +3,7 @@ package nul_test
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"sourcecode.social/reiver/go-nul"
|
"github.com/reiver/go-nul"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNullable_WhenNull_nothing(t *testing.T) {
|
func TestNullable_WhenNull_nothing(t *testing.T) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package nul_test
|
package nul_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"sourcecode.social/reiver/go-nul"
|
"github.com/reiver/go-nul"
|
||||||
|
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue