pip compatible server to serve Python packages out of GitHub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
257 B

package pypihub
import "fmt"
type Asset struct {
ID int
Name string
Owner string
Repo string
}
func (a Asset) String() string {
return a.Name
}
func (a Asset) URL() string {
return fmt.Sprintf("/%s/%s/%d/%s", a.Owner, a.Repo, a.ID, a.Name)
}