Skip to content

nktmys/sqlnull

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sqlnull

Go version GoDoc GitHub release Go Report Card Build Status Coverage Status

sqlnull is utilities for working with sql.Null types in Go.

Installation

  1. Get the package
go get github.com/nktmys/sqlnull
  1. Import the package
import "github.com/nktmys/sqlnull"

Examples

This code:

str := "hello"
v1 := sqlnull.From(str)
v2 := sqlnull.FromPtr(&str)

p1 := sqlnull.Prt(str)
p2 := sqlnull.PrtOrNil(&str)

vp := sqlnull.ValuePtrOrNil(v1)

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

sqlnull is utilities for working with sql.Null types in Go.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages