github.com/acoshift/pgsql@v0.15.3/string.go (about)

     1  package pgsql
     2  
     3  import (
     4  	"database/sql"
     5  	"database/sql/driver"
     6  )
     7  
     8  // NullString scans null into empty string and convert empty string into sql null
     9  func NullString(s *string) interface {
    10  	driver.Valuer
    11  	sql.Scanner
    12  } {
    13  	return Null(s)
    14  }