From 2d3ba64bc3dc1bb0bba367eaaba5c84e4d80fa1f Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 20 Jan 2026 20:11:58 +0100 Subject: [PATCH] go fmt --- cmd/safcm/config/templates.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/cmd/safcm/config/templates.go b/cmd/safcm/config/templates.go index dbc8cdf..52d40dc 100644 --- a/cmd/safcm/config/templates.go +++ b/cmd/safcm/config/templates.go @@ -69,11 +69,11 @@ func LoadTemplates(group string, files map[string]*safcm.File, return fmt.Errorf("%s: invalid %v", path, err) } err = tmpl.Execute(&buf, &templateArgs{ - Host: host, - Hostname: strings.Split(host, ".")[0], - groups: groupsMap, - allHosts: allHostsMap, - allGroups: allGroupsMap, + Host: host, + Hostname: strings.Split(host, ".")[0], + groups: groupsMap, + allHosts: allHostsMap, + allGroups: allGroupsMap, allGroupHosts: allGroups, }) if err != nil { @@ -87,11 +87,11 @@ func LoadTemplates(group string, files map[string]*safcm.File, // templateArgs is passed to .Execute() of the template. type templateArgs struct { - Host string - Hostname string - groups map[string]bool - allHosts map[string]bool - allGroups map[string]bool + Host string + Hostname string + groups map[string]bool + allHosts map[string]bool + allGroups map[string]bool allGroupHosts map[string][]string } -- 2.55.0