clair/vendor/github.com/ziutek/mymysql/native/addons.go
2016-02-24 16:34:54 -05:00

18 lines
239 B
Go

package native
func NbinToNstr(nbin *[]byte) *string {
if nbin == nil {
return nil
}
str := string(*nbin)
return &str
}
func NstrToNbin(nstr *string) *[]byte {
if nstr == nil {
return nil
}
bin := []byte(*nstr)
return &bin
}