Skip to content
Snippets Groups Projects
version.go 275 B
Newer Older
  • Learn to ignore specific revisions
  • ale's avatar
    ale committed
    package dns
    
    import "fmt"
    
    // Version is current version of this library.
    
    var Version = v{1, 1, 35}
    
    ale's avatar
    ale committed
    
    
    // v holds the version of this library.
    type v struct {
    
    ale's avatar
    ale committed
    	Major, Minor, Patch int
    }
    
    
    func (v v) String() string {
    
    ale's avatar
    ale committed
    	return fmt.Sprintf("%d.%d.%d", v.Major, v.Minor, v.Patch)
    }