...

Source file src/github.com/go-openapi/strfmt/conv/date.go

Documentation: github.com/go-openapi/strfmt/conv

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

View as plain text