1 package conv 2 3 import "github.com/go-openapi/strfmt" 4 5 // DateTime returns a pointer to of the DateTime value passed in. 6 func DateTime(v strfmt.DateTime) *strfmt.DateTime { 7 return &v 8 } 9 10 // DateTimeValue returns the value of the DateTime pointer passed in or 11 // the default value if the pointer is nil. 12 func DateTimeValue(v *strfmt.DateTime) strfmt.DateTime { 13 if v == nil { 14 return strfmt.DateTime{} 15 } 16 17 return *v 18 } 19