"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
|
||||
|
||||
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
2
go.mod
|
@ -1,4 +1,4 @@
|
|||
module sourcecode.social/reiver/go-nul
|
||||
module github.com/reiver/go-nul
|
||||
|
||||
go 1.18
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
|
||||
"fmt"
|
||||
|
||||
"sourcecode.social/reiver/go-nul"
|
||||
"github.com/reiver/go-nul"
|
||||
)
|
||||
|
||||
func TestNullable_GoString(t *testing.T) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
|
||||
"encoding/json"
|
||||
|
||||
"sourcecode.social/reiver/go-nul"
|
||||
"github.com/reiver/go-nul"
|
||||
)
|
||||
|
||||
func TestNullable_UnmarshalJSON_bool(t *testing.T) {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
|
||||
"encoding/json"
|
||||
|
||||
"sourcecode.social/reiver/go-nul"
|
||||
"github.com/reiver/go-nul"
|
||||
)
|
||||
|
||||
func TestNullable_UnmarshalJSON_int(t *testing.T) {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
|
||||
"encoding/json"
|
||||
|
||||
"sourcecode.social/reiver/go-nul"
|
||||
"github.com/reiver/go-nul"
|
||||
)
|
||||
|
||||
func TestNullable_UnmarshalJSON_string(t *testing.T) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package nul_test
|
||||
|
||||
import (
|
||||
"sourcecode.social/reiver/go-nul"
|
||||
"github.com/reiver/go-nul"
|
||||
|
||||
"testing"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue