package database type DB struct { Clients map[string]*Client `json:"client"` APs map[string]*AP `json:"ap"` } func NewDB() *DB { return &DB{ Clients: make(map[string]*Client), APs: make(map[string]*AP), } }