mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-11 16:14:05 -08:00
2b02fcb0cb
Update vendor `github.com/miekg/dns` to `v1.0.4` release. * Add dependent vendor `golang.org/x/crypto/ed25519`. * Add dependent vendor `golang.org/x/crypto/ed25519/internal/edwards25519`. * Add dependent vendor `golang.org/x/net/bpf`. * Add dependent vendor `golang.org/x/net/internal/iana`. * Add dependent vendor `golang.org/x/net/internal/socket`. * Add dependent vendor `golang.org/x/net/ipv4`. * Add dependent vendor `golang.org/x/net/ipv6`.
16 lines
274 B
Go
16 lines
274 B
Go
package dns
|
|
|
|
import "fmt"
|
|
|
|
// Version is current version of this library.
|
|
var Version = V{1, 0, 4}
|
|
|
|
// V holds the version of this library.
|
|
type V struct {
|
|
Major, Minor, Patch int
|
|
}
|
|
|
|
func (v V) String() string {
|
|
return fmt.Sprintf("%d.%d.%d", v.Major, v.Minor, v.Patch)
|
|
}
|