chore: bump core to v0.13.1; drop unused getBool helper

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Alex Dunmow 2026-06-10 22:31:05 +08:00
parent 52efb5ed5e
commit 30deb5b4c3
3 changed files with 3 additions and 12 deletions

2
go.mod
View File

@ -3,7 +3,7 @@ module git.dev.alexdunmow.com/block/themes/y2k
go 1.26.4
require (
git.dev.alexdunmow.com/block/core v0.12.4
git.dev.alexdunmow.com/block/core v0.13.1
github.com/a-h/templ v0.3.1020
)

6
go.sum
View File

@ -1,9 +1,7 @@
connectrpc.com/connect v1.20.0 h1:6TNDAB+WeNd2uolWNlYczB5E0KNNaVMNUEx8JEUsPmQ=
connectrpc.com/connect v1.20.0/go.mod h1:A2ygJrukXwWy32vkCAAHNVguZrqZ+jeZ9rGRnGR4dN4=
git.dev.alexdunmow.com/block/core v0.11.1 h1:5b3Ps9CLor2FGyxw/Qovt27AGZKR5Xi1JZGi/TfliTA=
git.dev.alexdunmow.com/block/core v0.11.1/go.mod h1:ZwzEOxRDLDfrhQGqo6hLw01/C1z/aS4Dm9ljQMl0Bg4=
git.dev.alexdunmow.com/block/core v0.12.4 h1:F/K4DkAuBlVQivcnWNECORfUQfct0E1JOfmg+61uLzw=
git.dev.alexdunmow.com/block/core v0.12.4/go.mod h1:ZwzEOxRDLDfrhQGqo6hLw01/C1z/aS4Dm9ljQMl0Bg4=
git.dev.alexdunmow.com/block/core v0.13.1 h1:KirP6dRMkarHcfLjnln6cijA3cGBseUYna0kTq077Fo=
git.dev.alexdunmow.com/block/core v0.13.1/go.mod h1:ZwzEOxRDLDfrhQGqo6hLw01/C1z/aS4Dm9ljQMl0Bg4=
github.com/BurntSushi/toml v1.6.0 h1:dRaEfpa2VI55EwlIW72hMRHdWouJeRF7TPYhI+AUQjk=
github.com/BurntSushi/toml v1.6.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
github.com/a-h/templ v0.3.1020 h1:ypAT/L5ySWEnZ6Zft/5yfoWXYYkhFNvEFOeeqecg4tw=

View File

@ -16,13 +16,6 @@ func getStringOr(content map[string]any, key, dflt string) string {
return dflt
}
// getBool extracts a boolean value, defaulting to dflt when absent.
func getBool(content map[string]any, key string, dflt bool) bool {
if v, ok := content[key].(bool); ok {
return v
}
return dflt
}
// getStringSlice extracts a []string from a JSON array of strings.
func getStringSlice(content map[string]any, key string) []string {