Decrease memory footprint by realigning struct members.

This commit is contained in:
2023-03-31 15:34:49 +01:00
parent 817fb91dba
commit a73dd78bd5
4 changed files with 23 additions and 19 deletions
+6 -6
View File
@@ -51,10 +51,10 @@ type Wording struct {
}
type Force struct {
Commit string
Patch int
Minor int
Major int
Commit string
Existing bool
Strict bool
}
@@ -68,24 +68,24 @@ type SemVer struct {
}
type Setup struct {
RepositoryHandler *git.Repository
RepositoryName string
RepositoryLocalPath string
RepositoryHandler *git.Repository
LocalConfigFile string
Wording Wording
Force Force
Commits []CommitDetails
Tags []TagDetails
Semver SemVer
Wording Wording
Force Force
Generate bool
LocalConfigFile string
UseLocal bool
}
type CommitDetails struct {
Timestamp time.Time
Hash string
Author string
Message string
Timestamp time.Time
}
type TagDetails struct {