10 Commits

Author SHA1 Message Date
Olivier Meunier
e3f79284e7 Load embedded tzdata and force TZ on some time related tests.
time/tzdata embeds a local copy of tzdata if the system has none.

use testing.T.Setenv to force a specific timezone on some tests.
2025-06-12 22:13:47 +02:00
Olivier Meunier
3b6a674f87 Lint all the things!
- golangci-lint configuration
- gofumpt on all go files
- added package comments
- added missing comments on exported functions
- do not check for bodyclose on http testing responses.
- check for errors on triggered tasks
- check for errors in acls
- check for errors during policy loading
- check for errors in password recovery process
- better error checking in pkg/extract/contentscripts
- nolint rules for errcheck when it's not needed
  (mostly defer calls for file reader closing)
2023-11-28 20:26:05 +01:00
Olivier Meunier
70b9f4678e Moved everything in src/* back to the root folder.
This was a mistake to use go.work since it might be needed on a
specific dev setup (with different "use" directives).
It results in a codebase that really matches the main readeck
module fqdn.
2023-09-12 20:12:02 +02:00
Olivier Meunier
dda91020d3 Moved all the source files to ./src 2023-08-13 23:37:48 +02:00
Olivier Meunier
8a23cbad74 License prefix in all go files 2023-08-13 20:29:43 +02:00
Olivier Meunier
e11047d041 Moving to github.
Although, it'll never be the upstream repository, it will be the public
one.
2021-05-02 18:58:39 +02:00
Olivier Meunier
3c492df297 Renamed the module to codeberg.org/readeck/readeck
This project was never on github in the first place, so there's no
need to have yet another github namespace.
2021-03-20 14:53:56 +01:00
Olivier Meunier
7fbf851c85 Migrated fftr site-config to go:embed 2021-03-12 00:03:32 +01:00
Olivier Meunier
5bf188d31b Better project layout
- internal packages
- configs package
2020-06-16 00:59:01 +02:00
Olivier Meunier
731d4385a4 main.go!!
Basic scaffolding for the app commands.

- load configuration
- set log level
- create required folders
- connect to the database
- init database schema
2020-06-13 17:30:57 +02:00