mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-18 03:24:05 -08:00
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)
|
||
|
}
|