Skip to content

Commit 7884c50

Browse files
committed
Allow setting options via a config file
Single-line configs via //go:generate were getting way too long
1 parent d72602e commit 7884c50

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

date_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
func TestDate_MarshalJSON(t *testing.T) {
1212
testDate := time.Date(2019, 4, 1, 0, 0, 0, 0, time.UTC)
1313
b := struct {
14-
DateField Date `json:"date"`
14+
DateField Date `json:"date"`
1515
}{
1616
DateField: Date{testDate},
1717
}
@@ -24,7 +24,7 @@ func TestDate_UnmarshalJSON(t *testing.T) {
2424
testDate := time.Date(2019, 4, 1, 0, 0, 0, 0, time.UTC)
2525
jsonStr := `{"date":"2019-04-01"}`
2626
b := struct {
27-
DateField Date `json:"date"`
27+
DateField Date `json:"date"`
2828
}{}
2929
err := json.Unmarshal([]byte(jsonStr), &b)
3030
assert.NoError(t, err)

0 commit comments

Comments
 (0)