summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-17 20:48:23 -0600
committerJeff Carr <[email protected]>2024-12-17 20:48:23 -0600
commitbea54091d2901d00c03541be09f33ae29e72cde1 (patch)
tree8d7e1257b88202532d59de35fd4d71a43c837544 /common.go
parent10cc012a125e80ffb95dbc28c99d443e4427a0ba (diff)
try to fix Current branch and version
Diffstat (limited to 'common.go')
-rw-r--r--common.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/common.go b/common.go
index cd88d45..6065b8c 100644
--- a/common.go
+++ b/common.go
@@ -21,3 +21,17 @@ func (repo *Repo) GetGoPath() string {
}
return repo.GoInfo.GoPath
}
+
+func (repo *Repo) GetGoPrimitive() bool {
+ if repo.GoInfo == nil {
+ return false
+ }
+ return repo.GoInfo.GoPrimitive
+}
+
+func (repo *Repo) SetGoPrimitive(b bool) {
+ if repo.GoInfo == nil {
+ repo.GoInfo = new(GoInfo)
+ }
+ repo.GoInfo.GoPrimitive = b
+}