Skip to content

taniko/nullable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nullable

Installation

go get github.com/taniko/nullable

Usage

package main

import (
	"fmt"

	"github.com/taniko/nullable"
)

func main() {
	var v nullable.Nullable[string]
	fmt.Println(v.IsNull()) // true

	v = nullable.New("text")
	fmt.Println(v.IsNull()) // false
	fmt.Println(v.Value())  // text
}

About

nullable value for golang

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages