Chore/update golang to 1.24 + add riscv64 support (#40)

* chg: chore: bump golang and deps

* chg: chore: add riscv64 support

* chg: chore: update goreleaser

* chg: chore: disable cgo

* chg: chore: tidy up deps

* chg: chore: add build tags
This commit is contained in:
2025-07-29 13:22:21 -03:00
committed by GitHub
parent d9141c8df7
commit 4d6cfb8668
8 changed files with 135 additions and 57 deletions

View File

@@ -6,6 +6,7 @@ import (
"time"
"github.com/felipemarinho97/torrent-indexer/cache"
"github.com/felipemarinho97/torrent-indexer/consts"
"github.com/felipemarinho97/torrent-indexer/magnet"
"github.com/felipemarinho97/torrent-indexer/monitoring"
"github.com/felipemarinho97/torrent-indexer/requester"
@@ -66,7 +67,8 @@ func HandlerIndex(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
err := json.NewEncoder(w).Encode(map[string]interface{}{
"time": currentTime,
"time": currentTime,
"build": consts.GetBuildInfo(),
"endpoints": map[string]interface{}{
"/indexers/comando_torrents": []map[string]interface{}{
{