diff options
| author | Jeff Carr <[email protected]> | 2024-12-17 20:48:23 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-17 20:48:23 -0600 |
| commit | bea54091d2901d00c03541be09f33ae29e72cde1 (patch) | |
| tree | 8d7e1257b88202532d59de35fd4d71a43c837544 /common.go | |
| parent | 10cc012a125e80ffb95dbc28c99d443e4427a0ba (diff) | |
try to fix Current branch and version
Diffstat (limited to 'common.go')
| -rw-r--r-- | common.go | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 +} |
