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

16 lines
275 B
Go
Raw Permalink Normal View History

2020-05-05 04:12:34 +00:00
package dns
import "fmt"
// Version is current version of this library.
2020-11-03 07:56:35 +00:00
var Version = v{1, 1, 30}
2020-05-05 04:12:34 +00:00
2020-11-03 07:56:35 +00:00
// v holds the version of this library.
type v struct {
2020-05-05 04:12:34 +00:00
Major, Minor, Patch int
}
2020-11-03 07:56:35 +00:00
func (v v) String() string {
2020-05-05 04:12:34 +00:00
return fmt.Sprintf("%d.%d.%d", v.Major, v.Minor, v.Patch)
}