revision

package
v1.0.44 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyCoreVersion added in v1.0.43

func CopyCoreVersion(xgoVersionFile string, runtimeVersionFile string) error

func GetCommitHash

func GetCommitHash(dir string, ref string) (string, error)

func GetFileContent added in v1.0.36

func GetFileContent(dir string, ref string, file string) (string, error)

git cat-file -p REF:FILE

func GetRuntimeVersionFile added in v1.0.41

func GetRuntimeVersionFile(rootDir string) string

func GetVersionFiles

func GetVersionFiles(rootDir string) []string

func GetVersionNumber added in v1.0.36

func GetVersionNumber(s string) (int, error)

func GetXgoVersionFile added in v1.0.41

func GetXgoVersionFile(rootDir string) string

func IncrementNumber added in v1.0.1

func IncrementNumber(s string) (string, error)

func IndexLinesSequence added in v1.0.36

func IndexLinesSequence(lines []string, seq []string) (lineIndex int, byteIndex int)

func ParseConstants added in v1.0.41

func ParseConstants(content string) (map[string]string, error)

parse

func ParseCoreVersionConstants added in v1.0.41

func ParseCoreVersionConstants(content string) (version string, revision string, number int, err error)

func ParseVersionConstants added in v1.0.41

func ParseVersionConstants(content string) (version string, revision string, number int, err error)

func PatchVersionFile

func PatchVersionFile(file string, version string, rev string, autIncrementNumber bool, number int) error

func ReplaceRevision

func ReplaceRevision(s string, revision string) (string, error)

func ReplaceVersion added in v1.0.41

func ReplaceVersion(s string, version string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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