String interface
()
| 40 | |
| 41 | // String interface |
| 42 | func (repo *LocalRepo) String() string { |
| 43 | if repo.Comment != "" { |
| 44 | return fmt.Sprintf("[%s]: %s", repo.Name, repo.Comment) |
| 45 | } |
| 46 | return fmt.Sprintf("[%s]", repo.Name) |
| 47 | } |
| 48 | |
| 49 | // NumPackages return number of packages in local repo |
| 50 | func (repo *LocalRepo) NumPackages() int { |
no outgoing calls