From cb3936c42a857a9cb9aa76c178787292539d5db8 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Mon, 13 Apr 2026 10:57:26 +0200 Subject: [PATCH] Initialize Go project --- .gitignore | 32 ++++++++++++++++++++++++++++++++ README.md | 9 +++++++++ docs/AI.md | 6 ++++++ docs/LINKS.md | 16 ++++++++++++++++ go.mod | 9 +++++++++ go.sum | 6 ++++++ 6 files changed, 78 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 docs/AI.md create mode 100644 docs/LINKS.md create mode 100644 go.mod create mode 100644 go.sum diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aaadf73 --- /dev/null +++ b/.gitignore @@ -0,0 +1,32 @@ +# If you prefer the allow list template instead of the deny list, see community template: +# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore +# +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib + +# Test binary, built with `go test -c` +*.test + +# Code coverage profiles and other test artifacts +*.out +coverage.* +*.coverprofile +profile.cov + +# Dependency directories (remove the comment below to include it) +# vendor/ + +# Go workspace file +go.work +go.work.sum + +# env file +.env + +# Editor/IDE +# .idea/ +# .vscode/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..d535ccd --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# declpac + +`declpac` syncs a declarative package list with the `pacman` package manager. + +## Building + +### Dependencies + +- go diff --git a/docs/AI.md b/docs/AI.md new file mode 100644 index 0000000..1f07442 --- /dev/null +++ b/docs/AI.md @@ -0,0 +1,6 @@ +# AI Usage + + + +First start the background process with `ollama serve`. +Then open `opencode` run the command `ollama launch opencode`. diff --git a/docs/LINKS.md b/docs/LINKS.md new file mode 100644 index 0000000..01a0ed1 --- /dev/null +++ b/docs/LINKS.md @@ -0,0 +1,16 @@ + +https://wiki.archlinux.org/title/Alpm_based_tools + +https://github.com/andrewgregory/pacutils - C + +YaY +https://github.com/Jguer/yay +https://github.com/Jguer/dyalpm - Go libalpm +https://github.com/Jguer/go-alpm - Go alpm +https://github.com/Jguer/aur + +https://aur.archlinux.org/rpc/swagger + +/usr/lib/libalpm.so.16.0.1 +/usr/lib/libalpm.so +/usr/lib/libalpm.so.16 diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..5605d9a --- /dev/null +++ b/go.mod @@ -0,0 +1,9 @@ +module github.com/Riyyi/declpac + +go 1.26.2 + +require ( + github.com/Jguer/aur v1.3.0 // indirect + github.com/Jguer/dyalpm v0.1.2 // indirect + github.com/ebitengine/purego v0.10.0 // indirect +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..ad60261 --- /dev/null +++ b/go.sum @@ -0,0 +1,6 @@ +github.com/Jguer/aur v1.3.0 h1:skdjp/P9kB75TBaJmn9PKK/kCeA9QsgjdUrORZ3gldU= +github.com/Jguer/aur v1.3.0/go.mod h1:F8Awo+WKzTxlXtNOO4pDQjMkePLZ+oMSbu+1fKLTTLo= +github.com/Jguer/dyalpm v0.1.2 h1:Gl0+GDWBQmo3DSsfzTPnKqCwYqcroq0j6kAtsIUkpUw= +github.com/Jguer/dyalpm v0.1.2/go.mod h1:FpcWwU1eYHVWMKmr/yHFqHYKsS+qGKCtk/FIXirj2MY= +github.com/ebitengine/purego v0.10.0 h1:QIw4xfpWT6GWTzaW5XEKy3HXoqrJGx1ijYHzTF0/ISU= +github.com/ebitengine/purego v0.10.0/go.mod h1:iIjxzd6CiRiOG0UyXP+V1+jWqUXVjPKLAI0mRfJZTmQ=