In Go
s.AddTag(h, "Enemy.Flying")
n := s.WithTag("Enemy", buf)
WithTagAll includes disabled nodes, WithComponent(typeID, out) and InRect(rect, out) are the other queries. When Go code changes Tags.Tags directly, call s.TagsChanged(h) so the index sees it.