terraform/vendor/github.com/ziutek/mymysql/native/addons.go

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
}