* Doc updates Was reading https://pkg.go.dev/github.com/miekg/dns?tab=doc and spotted some types and things to could be slightly better. Make v unexported, as this version stuff should not be part of the public API. Signed-off-by: Miek Gieben <miek@miek.nl> * fix test Signed-off-by: Miek Gieben <miek@miek.nl>
11 lines
180 B
Go
11 lines
180 B
Go
package dns
|
|
|
|
import "testing"
|
|
|
|
func TestVersion(t *testing.T) {
|
|
v := v{1, 0, 0}
|
|
if x := v.String(); x != "1.0.0" {
|
|
t.Fatalf("Failed to convert version %v, got: %s", v, x)
|
|
}
|
|
}
|