Statische Seiten

This commit is contained in:
Simon Martens
2025-02-24 16:20:08 +01:00
parent d806799b83
commit 6b5fa3dbc3
27 changed files with 617 additions and 85 deletions

View File

@@ -6,8 +6,8 @@ func Arr(els ...any) []any {
return els
}
// Must have even number of args: key, value, key, value, ...
func Dict(values ...interface{}) (map[string]interface{}, error) {
// Must have even number of args: key, value, key, value, ...
if len(values)%2 != 0 {
return nil, fmt.Errorf("invalid dict call: must have even number of args")
}