versionmanager

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFailedReadFileContent = errorx.NewType(errorx.CommonErrors, "ErrFailedReadFileContent")
)
View Source
var (
	ErrWrongRegexp = errorx.NewType(errorx.CommonErrors, "ErrWrongRegexp")
)

Functions

This section is empty.

Types

type PathVersionManager

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

func (PathVersionManager) Read

func (r PathVersionManager) Read() (string, error)

func (PathVersionManager) Write

func (r PathVersionManager) Write(version string) (string, error)

type RegexpVersionManager

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

func (RegexpVersionManager) Read

func (r RegexpVersionManager) Read() (string, error)

func (RegexpVersionManager) Write

func (r RegexpVersionManager) Write(version string) (string, error)

type VersionManager

type VersionManager interface {
	Read() (string, error)
	Write(version string) (string, error)
}

VersionManager manages version in string content

func NewVersionManager

func NewVersionManager(fileConfig app.File) (VersionManager, error)

Jump to

Keyboard shortcuts

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