aboutsummaryrefslogtreecommitdiff
path: root/app/wrapper.go
Commit message (Collapse)AuthorAgeFilesLines
* fix: document exported API, fix naming, and harden Downloadv1.3.3Christian Cleberg2026-07-151-12/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The remaining golangci-lint findings. These land together because the Url -> URL rename spans util.go, parsers.go and wrapper.go, and splitting it would leave an intermediate commit that does not compile. Download() carried the most serious bug here: try() only prints an error, it does not return, so a failed request fell through to resp.Body.Close() on a nil resp and panicked. Every failure path now returns the zero Downloaded, and callers check Status. ReturnHTTPError guards against the resulting status 0, which would otherwise panic WriteHeader. Requests carry a context with a timeout (noctx), and a download-proxy now routes through ProxiedTransport so it keeps the DA throttle and timeouts. Also: - doc comments on all 48 exported symbols (revive's exported rule, with checkPrivateReceivers, since most of app is exported methods on the unexported skunkyart type), plus package docs in new doc.go files so both the embed and non-embed builds are covered. - ST1003 naming: UrlBuilder -> URLBuilder, id_search -> idSearch, cache_config -> cacheConfig, TXT_RAW -> TxtRaw, mediaUrl -> mediaURL. - explicit json tags on structs that are unmarshaled (musttag); the hyphenated keys already had tags, the rest relied on case-insensitive fallback. Behaviour is unchanged. - modernization: range-over-int, WaitGroup.Go, stale +build lines, interface{} -> any, strings.Builder over string concatenation in a loop.
* fix: remove russian language throughoutChristian Cleberg2026-07-151-3/+3
|
* deps: migrate to github.com/zerolabsco/devianter v0.3.1Christian Cleberg2026-07-141-5/+5
| | | | | | | | | | Repoint the import path from git.macaw.me/skunky/devianter, replacing a placeholder v0.0.0 require that had no go.sum entry and did not resolve. v0.3.1 reorders the last two return values of PerformSearch, Group.Get and Group.Gallery from (..., error, Error) to (..., Error, error); adapt the call sites. The two types differ, so the compiler enforces this.
* Add da.opnxng.com + lost-skunk.cc is now in Finlandlost+skunk2025-04-071-0/+0
|
* ыlost+skunk2025-02-231-1/+1
|
* Переключатель кеша в озу, небольшие ↵lost+skunk2025-02-221-3/+10
| | | | улучшения ксс, фикс нсфв, фикс максимального размера кеша
* v1.3.2v1.3.2lost+skunk2024-09-231-17/+10
|
* отображение ошибокlost+skunk2024-09-041-20/+39
|
* Два API-эндпоинтаlost+skunk2024-09-031-1/+0
|
* instance list updatelost+skunk2024-09-021-3/+3
|
* user favouriteslost+skunk2024-08-141-96/+48
|
* темплейты в бинарнике и улучшенная ↵lost+skunk2024-08-131-17/+23
| | | | система кеша
* v1.3lost+skunk2024-08-011-56/+44
|
* Подготовка к релизу v1.3.1lost+skunk2024-07-301-16/+35
|
* Исправление некоторых обосрамсовv1.3lost+skunk2024-07-131-5/+5
|
* v1.3lost+skunk2024-07-131-26/+47
|
* Поиск по группамlost+skunk2024-07-091-11/+53
|
* небольшие улучшения парсинга ↵lost+skunk2024-07-081-4/+8
| | | | описания/комментариев
* Небольшие изменения в гуе + (возможно) ↵lost+skunk2024-07-081-8/+21
| | | | устранённый баг с комментами
* Реки и копирование темплейтов в озуlost+skunk2024-07-061-0/+285