diff options
Diffstat (limited to 'vendor/github.com/miekg/dns/version.go')
-rw-r--r-- | vendor/github.com/miekg/dns/version.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/github.com/miekg/dns/version.go b/vendor/github.com/miekg/dns/version.go new file mode 100644 index 000000000..0e23cc3e1 --- /dev/null +++ b/vendor/github.com/miekg/dns/version.go @@ -0,0 +1,15 @@ +package dns + +import "fmt" + +// Version is current version of this library. +var Version = V{1, 0, 3} + +// 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) +} |