File: repository.go

package info (click to toggle)
golang-github-cli-go-gh 1.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 444 kB
  • sloc: makefile: 2
file content (24 lines) | stat: -rw-r--r-- 372 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package repository

func New(host, owner, name string) repo {
	return repo{host: host, owner: owner, name: name}
}

// Implements repository.Repository interface.
type repo struct {
	host  string
	owner string
	name  string
}

func (r repo) Host() string {
	return r.host
}

func (r repo) Owner() string {
	return r.owner
}

func (r repo) Name() string {
	return r.name
}