From 0022cba4df53941d644bc9945de3229e59063577 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Sun, 19 Jul 2015 15:25:54 -0700 Subject: [PATCH] Add SrcURL() to Apk --- index.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.go b/index.go index d87dcc6..3d16d02 100644 --- a/index.go +++ b/index.go @@ -162,6 +162,10 @@ func (a *Apk) URL() string { return fmt.Sprintf("%s/%s", a.Repo.URL, a.ApkName) } +func (a *Apk) SrcURL() string { + return fmt.Sprintf("%s/%s", a.Repo.URL, a.SrcName) +} + type appList []App func (al appList) Len() int { return len(al) }