diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 1522dee..07c8261 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -16,8 +16,8 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v2 with: - # Run on the latest minor release of Go 1.14: - go-version: ^1.14 + # Run on the latest minor release of Go 1.18: + go-version: ^1.18 id: go - name: Check out code into the Go module directory @@ -51,8 +51,8 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v2 with: - # Run on the latest minor release of Go 1.14: - go-version: ^1.14 + # Run on the latest minor release of Go 1.18: + go-version: ^1.18 id: go - name: Check out code into the Go module directory @@ -78,8 +78,8 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v2 with: - # Run on the latest minor release of Go 1.14: - go-version: ^1.14 + # Run on the latest minor release of Go 1.18: + go-version: ^1.18 id: go - name: Check out code into the Go module directory diff --git a/cmd/dhcp4d/dhcp4d.go b/cmd/dhcp4d/dhcp4d.go index e445f4f..8376155 100644 --- a/cmd/dhcp4d/dhcp4d.go +++ b/cmd/dhcp4d/dhcp4d.go @@ -97,6 +97,9 @@ var ( } return dur.Truncate(1 * time.Second).String() }, + "zero": func(t time.Time) bool { + return t.IsZero() + }, }).Parse(`
@@ -156,8 +159,8 @@ form {