]> ruderich.org/simon Gitweb - safcm/safcm.git/commitdiff
go fmt
authorSimon Ruderich <simon.ruderich@fau.de>
Tue, 20 Jan 2026 19:11:58 +0000 (20:11 +0100)
committerSimon Ruderich <simon.ruderich@fau.de>
Tue, 20 Jan 2026 19:13:12 +0000 (20:13 +0100)
cmd/safcm/config/templates.go

index dbc8cdfd49c977f441dfb71b2e17f21bde1f7087..52d40dc302ec57737e567f66bcc5f24bfd25d515 100644 (file)
@@ -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
 }