Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit be67573

Browse files
committed
Initial commit, added report models
0 parents  commit be67573

3 files changed

Lines changed: 28 additions & 0 deletions

File tree

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Go
2+
bin/
3+
dist/
4+
*.out
5+
*.test
6+
# Editors
7+
.idea/
8+
.vscode/
9+
# OS
10+
.DS_Store
11+

go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/MABD-dev/RepoScan
2+
3+
go 1.24.6

pkg/report/report.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package report
2+
3+
type RepoState struct {
4+
Path string `json:"path"`
5+
Repo string `json:"repo"`
6+
Branch string `json:"branch"`
7+
Uncommited bool `json:"uncommited"`
8+
}
9+
10+
type ScanReport struct {
11+
Version int `json:"version"`
12+
RepoStates []RepoState `json:"repoStates"`
13+
GeneratedAt time.Time `json:"generatedAt"`
14+
}

0 commit comments

Comments
 (0)