16 lines
275 B
Go
Raw Normal View History

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