dispatch/vendor/github.com/miekg/dns/version.go

16 lines
275 B
Go
Raw Normal View History

2018-05-04 21:39:27 +00:00
package dns
import "fmt"
// Version is current version of this library.
2020-04-29 02:23:32 +00:00
var Version = v{1, 1, 29}
2018-05-04 21:39:27 +00:00
2020-04-29 02:23:32 +00:00
// v holds the version of this library.
type v struct {
2018-05-04 21:39:27 +00:00
Major, Minor, Patch int
}
2020-04-29 02:23:32 +00:00
func (v v) String() string {
2018-05-04 21:39:27 +00:00
return fmt.Sprintf("%d.%d.%d", v.Major, v.Minor, v.Patch)
}