{{define "admin"}} data := struct { Users []gamelangpb.User Sessions map[string]gamelangpb.User }{ Users: ws.usermanager.List(), Sessions: ws.sessions, }
Username | Admin |
---|---|
{{$user.Name}} | {{$user.Admin}} |
Session | Username |
---|---|
{{$session}} | {{$user.Name}} |
World | User |
---|---|
{{$world.Name}} | {{range $user := $world.Users}}{{$user.Name}} {{end}} |