versionprovider

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package versionprovider is a package for providing version from build info.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VersionProvidable

type VersionProvidable interface {
	GetVersion(emmbeddedVersion string) string
}

VersionProvidable is an interface for VersionProvider.

type VersionProvider

type VersionProvider struct {
	DebugProxy debugproxy.Debug
}

VersionProvider is a struct that implements VersionProvidable.

func New

func New(debugProxy debugproxy.Debug) *VersionProvider

New is a constructor of VersionProvider.

func (*VersionProvider) GetVersion

func (v *VersionProvider) GetVersion(embeddedVersion string) string

GetVersion gets the version from build info if version is not embedded.

Jump to

Keyboard shortcuts

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