revision

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: MIT Imports: 10 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 IncrementXgoVersion added in v1.1.0

func IncrementXgoVersion(rootDir string, amend bool, autoIncrementNumber bool) error

func IndexLinesSequence added in v1.0.36

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

func ParseCoreVersionConstants added in v1.0.41

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

func ParseVersionConstants added in v1.0.41

func ParseVersionConstants(fileName string, 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