versions

package
v0.0.0-...-1695e67 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBranchWithHead

func GetBranchWithHead(p string) string

func GetCommitId

func GetCommitId(p string, rev string) (string, string)

Function GetCommitId

returns the pair of short commid id and the full long commit id

p = path to change to
rev = if the commit id cannot be found, return this as a pair

func GetRemoteURL

func GetRemoteURL(p string) string

func GetTags

func GetTags() string

func Report

func Report()

Types

type Generator

type Generator interface {
	Generate(v Version, filename string)
}

type Version

type Version struct {
	Major         int
	Minor         int
	Build         int
	Repo          string
	Branch        string
	ShortCommitId string
	LongCommitId  string
	Tags          string
}

Jump to

Keyboard shortcuts

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