phpversion

package
v0.0.0-...-e49a3f0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PHPVersion

type PHPVersion struct {
	Major uint8 `flag:"-"`
	Minor uint8 `flag:"-"`
	Patch uint8 `flag:"-"`
}

PHPVersion struct is a representation of a PHP version with methods to retrieve it.

func EightOne

func EightOne() *PHPVersion

func EightTwo

func EightTwo() *PHPVersion

func FromString

func FromString(version string) (*PHPVersion, bool)

func Get

func Get() (*PHPVersion, error)

func Latest

func Latest() *PHPVersion

func (*PHPVersion) Equals

func (v *PHPVersion) Equals(other *PHPVersion) bool

func (*PHPVersion) EqualsMajorMinor

func (v *PHPVersion) EqualsMajorMinor(other *PHPVersion) bool

func (*PHPVersion) IsHigherThan

func (v *PHPVersion) IsHigherThan(other *PHPVersion) bool

func (*PHPVersion) String

func (v *PHPVersion) String() string

Jump to

Keyboard shortcuts

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