Last active
August 29, 2015 14:06
-
-
Save FiloSottile/c002ba7a9855223a795b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rrSets := map[uint16][]dns.RR{} | |
for _, rr := range r.Response.Answer { | |
rrtype := rr.Header().Rrtype | |
set, ok := rrSets[rrtype] | |
if !ok { | |
set = []dns.RR{} | |
} | |
rrSets[rrtype] = append(set, rr) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment