Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // BuildTime is a time label of the moment when the binary was built BuildTime string = "unset" // Commit is a last commit hash at the moment when the binary was built Commit = "unset" // Release is a semantic version of current build Release = "unset" )
Functions ¶
Types ¶
type Config ¶
type Config struct { //Db_url string `yaml:"db_url" json:"db_url"` Port uint `yaml:"port" json:"port" ` }
Config - структура для считывания конфигурационного файла
func ReadConfig ¶
type VersionType ¶
type VersionType struct { Minor string `json:"Minor"` Major string `json:"Major"` Patch string `json:"Patch"` Commit string `json:"Commit"` BuildTime string `json:"BuildTime"` }
var Version VersionType
func (*VersionType) ReadVersionFile ¶
func (v *VersionType) ReadVersionFile(versionFile string) (err error)
func (*VersionType) VersionStr ¶
func (v *VersionType) VersionStr() string
Click to show internal directories.
Click to hide internal directories.