From bea54091d2901d00c03541be09f33ae29e72cde1 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 17 Dec 2024 20:48:23 -0600 Subject: try to fix Current branch and version --- common.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'common.go') 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 +} -- cgit v1.2.3