Add panics to make older Go versions happy

This commit is contained in:
Miek Gieben 2013-07-12 14:27:16 +00:00
parent 980f5e9d63
commit 7ef3106262
1 changed files with 2 additions and 0 deletions

View File

@ -119,6 +119,7 @@ func CountLabel(s string) (labels int) {
return return
} }
} }
panic("dns: not reached")
} }
// LenLabels returns the number of labels in the string s. // LenLabels returns the number of labels in the string s.
@ -145,6 +146,7 @@ func Split(s string) []int {
} }
idx = append(idx, off) idx = append(idx, off)
} }
panic("dns: not reached")
} }
// NextLabel returns the index of the start of the next label in the // NextLabel returns the index of the start of the next label in the