File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,11 @@ func PtrToUint64(u uint64) *uint64 { return &u }
3131func PtrToUint8 (u uint8 ) * uint8 { return & u }
3232func PtrToUintptr (u uintptr ) * uintptr { return & u }
3333
34- func PtrToNullString (s string ) * null.String { n := null .StringFrom (s ); return & n }
35- func PtrToNullUint64 (u uint64 ) * null.Uint64 { n := null .Uint64From (u ); return & n }
36- func PtrToNullTime (t time.Time ) * null.Time { n := null .TimeFrom (t ); return & n }
34+ func PtrToNullString (s string ) * null.String { n := null .StringFrom (s ); return & n }
35+ func PtrToNullUint64 (u uint64 ) * null.Uint64 { n := null .Uint64From (u ); return & n }
36+ func PtrToNullTime (t time.Time ) * null.Time { n := null .TimeFrom (t ); return & n }
37+ func PtrToNullFloat64 (f float64 ) * null.Float64 { n := null .Float64From (f ); return & n }
38+ func PtrToNullFloat32 (f float32 ) * null.Float32 { n := null .Float32From (f ); return & n }
3739
3840func StrFromPtr (ptr * string ) string {
3941 if ptr == nil {
You can’t perform that action at this time.
0 commit comments