From 35f7fe3af67057b5595fe6abee62641a118f3461 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Tue, 9 Aug 2022 20:57:34 +0200 Subject: Upgrade to Go 1.19 --- .github/workflows/go.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- go.mod | 2 +- internal/feed/template/funcs.go | 3 ++- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0ff0613..32e1f37 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -13,10 +13,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Set up Go 1.18 + - name: Set up Go 1.19 uses: actions/setup-go@v3 with: - go-version: 1.18 + go-version: 1.19 id: go - name: Checkout diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d80df24..769c97b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,10 +11,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Set up Go 1.18 + - name: Set up Go 1.19 uses: actions/setup-go@v3 with: - go-version: 1.18 + go-version: 1.19 id: go - name: Checkout diff --git a/go.mod b/go.mod index 790b3d1..03dd157 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/Necoro/feed2imap-go -go 1.18 +go 1.19 require ( github.com/Necoro/go-readability v0.0.0-20220610220921-ea81c68a0622 diff --git a/internal/feed/template/funcs.go b/internal/feed/template/funcs.go index fbfb572..6487ae2 100644 --- a/internal/feed/template/funcs.go +++ b/internal/feed/template/funcs.go @@ -5,6 +5,7 @@ import ( html "html/template" "strconv" "strings" + text "text/template" "github.com/Necoro/feed2imap-go/pkg/log" ) @@ -63,7 +64,7 @@ func _html(s string) html.HTML { return html.HTML(s) } -var funcMap = map[string]any{ +var funcMap = text.FuncMap{ "dict": dict, "join": join, "lastUrlPart": lastUrlPart, -- cgit v1.2.3