File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -131,18 +131,18 @@ func ParseDateTime(data string) (DateTime, error) {
131131// swagger:strfmt date-time
132132type DateTime time.Time
133133
134- // NewDateTime is a representation of the UNIX epoch (January 1, 1970 00:00:00 UTC) for the DateTime type.
134+ // NewDateTime is a representation of the UNIX epoch (January 1, 1970 00:00:00 UTC) for the [ DateTime] type.
135135//
136- // Notice that this is not the zero value of the DateTime type.
136+ // Notice that this is not the zero value of the [ DateTime] type.
137137//
138- // You may use DateTime.IsUNIXZero() to check against this value.
138+ // You may use [ DateTime.IsUNIXZero] to check against this value.
139139func NewDateTime () DateTime {
140140 return DateTime (time .Unix (0 , 0 ).UTC ())
141141}
142142
143- // MakeDateTime is a representation of the zero value of the DateTime type (January 1, year 1, 00:00:00 UTC).
143+ // MakeDateTime is a representation of the zero value of the [ DateTime] type (January 1, year 1, 00:00:00 UTC).
144144//
145- // You may use Datetime.IsZero() to check against this value.
145+ // You may use [ Datetime.IsZero] to check against this value.
146146func MakeDateTime () DateTime {
147147 return DateTime (time.Time {})
148148}
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ func TestIsZero(t *testing.T) {
7070 assert .True (t , MakeDateTime ().IsZero ())
7171 })
7272
73- t .Run ("empty DatTime should be zero" , func (t * testing.T ) {
73+ t .Run ("empty DateTime should be zero" , func (t * testing.T ) {
7474 dt := DateTime {}
7575 assert .True (t , dt .IsZero ())
7676 })
You can’t perform that action at this time.
0 commit comments