Add repeat/separator templates; validate at compile time; support Go 1.22+ via GO_VERSION

This commit is contained in:
lilleman
2026-06-08 21:11:58 +02:00
parent 72154502d7
commit 3e1cd3ee2a
8 changed files with 241 additions and 139 deletions
+5 -3
View File
@@ -1,7 +1,9 @@
# Reproducible test/build image. `docker build .` fails if vet or tests fail,
# so it doubles as CI. Day-to-day, prefer the Makefile (bind-mounts source,
# no rebuilds). Pin matches the latest stable Go at time of writing.
FROM golang:1.26.4
# so it doubles as CI. Day-to-day, prefer `docker compose run` (bind-mounts
# source, no rebuilds). GO_VERSION defaults to the latest stable Go; override it
# to test the lowest supported version: docker build --build-arg GO_VERSION=1.22 .
ARG GO_VERSION=1.26.4
FROM golang:${GO_VERSION}
WORKDIR /app