[PR #1127] [MERGED] add Sprig functions to go templates #1517

Closed
opened 2026-05-07 01:02:28 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/binwiederhier/ntfy/pull/1127
Author: @wunter8
Created: 6/3/2024
Status: Merged
Merged: 7/21/2025
Merged by: @binwiederhier

Base: mainHead: go-templates-functions


📝 Commits (2)

  • 1f2c76e copy subset of Sprig template functions
  • 650f492 make tests happy

📊 Changes

52 files changed (+5369 additions, -4 deletions)

View changed files

📝 README.md (+1 -0)
📝 docs/publish.md (+4 -1)
📝 docs/releases.md (+1 -0)
docs/sprig.md (+24 -0)
docs/sprig/conversion.md (+36 -0)
docs/sprig/crypto.md (+41 -0)
docs/sprig/date.md (+126 -0)
docs/sprig/defaults.md (+169 -0)
docs/sprig/dicts.md (+172 -0)
docs/sprig/encoding.md (+6 -0)
docs/sprig/flow_control.md (+11 -0)
docs/sprig/integer_slice.md (+41 -0)
docs/sprig/lists.md (+188 -0)
docs/sprig/math.md (+78 -0)
docs/sprig/paths.md (+114 -0)
docs/sprig/reflection.md (+50 -0)
docs/sprig/string_slice.md (+72 -0)
docs/sprig/strings.md (+309 -0)
docs/sprig/url.md (+33 -0)
docs/sprig/uuid.md (+9 -0)

...and 32 more files

📄 Description

fixes #1121

Sprig is the library used on https://repeatit.io

This now uses the Slim-Sprig fork of Sprig to avoid all the additional dependencies that Sprig requires

I have merged a subset of Sprig with the ntfy code base.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/binwiederhier/ntfy/pull/1127 **Author:** [@wunter8](https://github.com/wunter8) **Created:** 6/3/2024 **Status:** ✅ Merged **Merged:** 7/21/2025 **Merged by:** [@binwiederhier](https://github.com/binwiederhier) **Base:** `main` ← **Head:** `go-templates-functions` --- ### 📝 Commits (2) - [`1f2c76e`](https://github.com/binwiederhier/ntfy/commit/1f2c76e63d3c256f335918f9653527ed5526c6a6) copy subset of Sprig template functions - [`650f492`](https://github.com/binwiederhier/ntfy/commit/650f492d7dd2b3196474cc3ce334767ff63a367f) make tests happy ### 📊 Changes **52 files changed** (+5369 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) 📝 `docs/publish.md` (+4 -1) 📝 `docs/releases.md` (+1 -0) ➕ `docs/sprig.md` (+24 -0) ➕ `docs/sprig/conversion.md` (+36 -0) ➕ `docs/sprig/crypto.md` (+41 -0) ➕ `docs/sprig/date.md` (+126 -0) ➕ `docs/sprig/defaults.md` (+169 -0) ➕ `docs/sprig/dicts.md` (+172 -0) ➕ `docs/sprig/encoding.md` (+6 -0) ➕ `docs/sprig/flow_control.md` (+11 -0) ➕ `docs/sprig/integer_slice.md` (+41 -0) ➕ `docs/sprig/lists.md` (+188 -0) ➕ `docs/sprig/math.md` (+78 -0) ➕ `docs/sprig/paths.md` (+114 -0) ➕ `docs/sprig/reflection.md` (+50 -0) ➕ `docs/sprig/string_slice.md` (+72 -0) ➕ `docs/sprig/strings.md` (+309 -0) ➕ `docs/sprig/url.md` (+33 -0) ➕ `docs/sprig/uuid.md` (+9 -0) _...and 32 more files_ </details> ### 📄 Description fixes #1121 ~~[Sprig](https://github.com/Masterminds/sprig) is the library used on https://repeatit.io~~ ~~This now uses the [Slim-Sprig](https://github.com/go-task/slim-sprig) fork of Sprig to avoid all the additional dependencies that Sprig requires~~ I have merged a subset of Sprig with the ntfy code base. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-07 01:02:28 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#1517
No description provided.