{{define "admin"}} data := struct { Users []gamelangpb.User Sessions map[string]gamelangpb.User }{ Users: ws.usermanager.List(), Sessions: ws.sessions, } admin

Admin


current users


{{range $user := .Users }} {{end}}
Username Admin
{{$user.Name}} {{$user.Admin}}

sessions


{{range $session, $user := .Sessions }} {{end}}
Session Username
{{$session}} {{$user.Name}}

worlds


{{range $world := .Worlds}} {{end}}
World User
{{$world.Name}} {{range $user := $world.Users}}{{$user.Name}} {{end}}
{{end}}