version

package
v0.0.0-...-53ff736 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Last = newVersion(8, 11, 1, 0)
)

Functions

This section is empty.

Types

type Option

type Option func(op *option)

func WithBugfix

func WithBugfix(bugfix uint8) Option

func WithMajor

func WithMajor(major uint8) Option

func WithMinor

func WithMinor(minor uint8) Option

func WithPrerelease

func WithPrerelease(prerelease uint8) Option

type Version

type Version struct {
	// contains filtered or unexported fields
}

Version Use by certain classes to match version compatibility across releases of Lucene. WARNING: When changing the version parameter that you supply to components in Lucene, do not simply change the version at search-time, but instead also adjust your indexing code to match, and re-index.

func New

func New(options ...Option) (*Version, error)

func Parse

func Parse(version string) (*Version, error)

func (*Version) Bugfix

func (v *Version) Bugfix() uint8

func (*Version) Clone

func (v *Version) Clone() *Version

func (*Version) Major

func (v *Version) Major() uint8

func (*Version) Minor

func (v *Version) Minor() uint8

func (*Version) OnOrAfter

func (v *Version) OnOrAfter(other *Version) bool

func (*Version) Prerelease

func (v *Version) Prerelease() uint8

func (*Version) String

func (v *Version) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL