diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-05-26 00:05:31 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-05-26 14:41:21 +0200 |
commit | 349a3d1ff36a436261b1b65b870f8f262f06584f (patch) | |
tree | 25c4d6933c49f818e520ce662ffa15e040877f4d /pkg/service/git.go | |
parent | c06945c189c1d8ef3cedeb51e416ba0fec36368f (diff) | |
download | cerrado-349a3d1ff36a436261b1b65b870f8f262f06584f.tar.gz cerrado-349a3d1ff36a436261b1b65b870f8f262f06584f.tar.bz2 cerrado-349a3d1ff36a436261b1b65b870f8f262f06584f.zip |
feat: Add bare bones project list
Diffstat (limited to 'pkg/service/git.go')
-rw-r--r-- | pkg/service/git.go | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkg/service/git.go b/pkg/service/git.go new file mode 100644 index 0000000..0415cee --- /dev/null +++ b/pkg/service/git.go @@ -0,0 +1,30 @@ +package service + +import "fmt" + +type ( + GitService struct{} + Repository struct { + Name string + Title string + Description string + } +) + +func NewGitService() *GitService { + return &GitService{} +} + +func (g *GitService) ListRepositories() []*Repository { + repos := make([]*Repository, 10) + + for i := range 10 { + repos[i] = &Repository{ + Name: fmt.Sprintf("repository-%d", i), + Title: fmt.Sprintf("Repository %d", i), + Description: fmt.Sprintf("This is a description for repository %d", i), + } + } + + return repos +} |