https://github.com/sheepla/go-pacsearch
🏔 A go package to search Arch Linux packages
https://github.com/sheepla/go-pacsearch
archlinux go go-client go-package package-searcher searcher
Last synced: 9 months ago
JSON representation
🏔 A go package to search Arch Linux packages
- Host: GitHub
- URL: https://github.com/sheepla/go-pacsearch
- Owner: sheepla
- License: mit
- Created: 2022-08-30T12:25:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-25T08:33:06.000Z (over 3 years ago)
- Last Synced: 2025-04-06T00:51:09.802Z (12 months ago)
- Topics: archlinux, go, go-client, go-package, package-searcher, searcher
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-pacsearch
*WIP* A Go package for searching Arch Linux packages via [Official Repository Web Interface](https://wiki.archlinux.org/title/Official_repositories_web_interface)
*This repository is still under development. Specifications subject to change without notice.*
## Examples
```go
package main
import (
"fmt"
"log"
"github.com/sheepla/pacsearch"
)
func main() {
param, err := pacsearch.NewParam("vim")
if err != nil {
log.Fatalln(err)
}
results, err := pacsearch.Search(param)
if err != nil {
log.Fatalln(err)
}
for _, result := range results.Results {
//nolint:forbidigo
fmt.Printf(
"%s/%s v%s\n%s\n\n",
result.Repo,
result.Pkgname,
result.Pkgver,
result.Pkgdesc,
)
}
}
```
```
community/firefox-tridactyl v1.22.1
Replace Firefox's control mechanism with one modelled on Vim
community/grub-theme-vimix v20190605
A blur theme for grub
extra/gvim v9.0.0321
Vi Improved, a highly configurable, improved version of the vi text editor (with advanced features, such as a GUI)
community/neovide v0.10.1
...
```
## License
[MIT](./LICENSE)