Browse Source

Run go fmt

pull/8/head
Daniel Martí 11 years ago
parent
commit
ab6eca4ed8
  1. 3
      cmd/fdroidcl/main.go
  2. 12
      index.go

3
cmd/fdroidcl/main.go

@ -47,7 +47,7 @@ func filterAppsSearch(apps []fdroidcl.App, terms []string) []fdroidcl.App {
return result
}
func filterAppsInstalled(apps []fdroidcl.App, installed []string) []fdroidcl.App{
func filterAppsInstalled(apps []fdroidcl.App, installed []string) []fdroidcl.App {
instMap := make(map[string]struct{}, len(installed))
for _, id := range installed {
instMap[id] = struct{}{}
@ -140,7 +140,6 @@ func printAppDetailed(app fdroidcl.App) {
}
}
var repoURL = flag.String("r", "https://f-droid.org/repo", "repository address")
func init() {

12
index.go

@ -19,12 +19,12 @@ import (
type Index struct {
Repo struct {
Name string `xml:"name,attr"`
PubKey string `xml:"pubkey,attr"`
Timestamp int `xml:"timestamp,attr"`
URL string `xml:"url,attr"`
Version int `xml:"version,attr"`
MaxAge int `xml:"maxage,attr"`
Name string `xml:"name,attr"`
PubKey string `xml:"pubkey,attr"`
Timestamp int `xml:"timestamp,attr"`
URL string `xml:"url,attr"`
Version int `xml:"version,attr"`
MaxAge int `xml:"maxage,attr"`
Description string `xml:"description"`
} `xml:"repo"`
Apps []App `xml:"application"`

Loading…
Cancel
Save