From 7ef3106262c598db27089ddb4b67243a50cda38e Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Fri, 12 Jul 2013 14:27:16 +0000 Subject: [PATCH] Add panics to make older Go versions happy --- labels.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/labels.go b/labels.go index 72c985da..8eb298b7 100644 --- a/labels.go +++ b/labels.go @@ -119,6 +119,7 @@ func CountLabel(s string) (labels int) { return } } + panic("dns: not reached") } // LenLabels returns the number of labels in the string s. @@ -145,6 +146,7 @@ func Split(s string) []int { } idx = append(idx, off) } + panic("dns: not reached") } // NextLabel returns the index of the start of the next label in the