Skip to content

Commit 4d289ef

Browse files
committed
addressed review comments
Signed-off-by: Frederic BIDON <[email protected]>
1 parent b0787c9 commit 4d289ef

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

time.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,18 +131,18 @@ func ParseDateTime(data string) (DateTime, error) {
131131
// swagger:strfmt date-time
132132
type 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.
139139
func 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.
146146
func MakeDateTime() DateTime {
147147
return DateTime(time.Time{})
148148
}

time_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
})

0 commit comments

Comments
 (0)