type nabia_struct struct { nabia_map map[string]*nabia_data // Key = path; value = pointer to content rwmutex sync.RWMutex } small trick: type Path = string type nabia_struct struct { nabia_map map[Path]*nabia_data rwmutex sync.RWMutex }
What's the trick?
he aliased Path to string
Обсуждают сегодня