From 231c4abbe3be2d8bc068a147cd362b5d46544e8b Mon Sep 17 00:00:00 2001 From: syuparn Date: Thu, 11 Apr 2024 08:50:22 +0900 Subject: [PATCH 1/2] update installation document --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9acf175..905a911 100644 --- a/README.md +++ b/README.md @@ -8,16 +8,16 @@ executable go-template command (like awk and jq!) Get binary [here](https://github.com/Syuparn/tmplscript/releases). -You can also install from `go get`. +You can also install from `go install`. ```bash -$ go get -u github.com/syuparn/tmplscript +$ go install github.com/syuparn/tmplscript@latest ``` # usage ```bash -$ go get -u github.com/syuparn/tmplscript +$ go install github.com/syuparn/tmplscript@latest $ echo "hello" | tmplscript '{{print . ", " "world!"}}' hello, world! # read from file instead From b299c7091fd1af5248815adde3f7e83acabc568b Mon Sep 17 00:00:00 2001 From: syuparn Date: Thu, 11 Apr 2024 08:51:16 +0900 Subject: [PATCH 2/2] update to go1.22 --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- go.mod | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 04a32ab..fad0668 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v2 with: - go-version: ^1.17 + go-version: ^1.22 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cd4106e..dfdd510 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v2 with: - go-version: ^1.17 + go-version: ^1.22 id: go - name: Check out code into the Go module directory diff --git a/go.mod b/go.mod index bc3bbbb..180dfe9 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,8 @@ module github.com/syuparn/tmplscript -go 1.17 +go 1.22 + +toolchain go1.22.1 require ( github.com/Masterminds/sprig/v3 v3.2.2