config

package
v0.0.0-...-7013275 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LetItGoConfig

type LetItGoConfig struct {
	Name        string
	Description string
	// contains filtered or unexported fields
}

LetItGoConfig is the base config.

func NewConfig

func NewConfig(v string) LetItGoConfig

NewConfig creates a config with the version set.

func (*LetItGoConfig) Version

func (lig *LetItGoConfig) Version() Version

Version returns the version.

type Version

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

Version is an struct representing the version of the project you are releasing.

func (Version) Major

func (v Version) Major() int64

Major returns the major part of a semver version.

func (Version) Minor

func (v Version) Minor() int64

Minor returns the minor part of a semver version.

func (Version) Patch

func (v Version) Patch() int64

Patch returns the patch part of a semver version.

func (Version) PreRelease

func (v Version) PreRelease() string

PreRelease returns the prerelease part of a semver version.

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