d6fe09dbcd
chore(lint): update golangci-lint configuration to version 2
2025-10-25 17:04:25 -03:00
3e566d1847
chore(deps): update flakes
2025-10-25 17:04:25 -03:00
1e7f79bfbf
feat(xtemplate,hot): HotTemplate, providing hot reloading for text/ and html/template
2025-10-25 17:04:24 -03:00
0281e7ac20
feat(xtemplate): Template interface constructors based on text/ and html/template
2025-10-21 21:45:49 -03:00
997be04fc1
feat(xtemplate,text): wrapper for html/template.Template struct
2025-10-21 21:45:17 -03:00
67d255df68
feat(xtemplate,text): wrapper for text/template.Template struct
2025-10-21 21:45:11 -03:00
ad84857ea7
feat(xtemplate): init package, Template interface
...
New package focused on improving text/template and html/template std
packages.
2025-10-21 21:44:42 -03:00
6ea200aa64
chore: update module definition with new domain
2025-10-13 14:56:05 -03:00
f7698f8764
chore: remove smalltrip package from this repository
...
All code and contents were moved to loreddev/smalltrip
2025-08-11 19:17:06 -03:00
96f62468b0
chore(flake): pass pkgs via attributes parameter
2025-08-11 19:16:54 -03:00
eb6097ed46
feat(smalltrip,problem): problem multiplexer to handle 404 and 405 errors
2025-08-11 19:16:53 -03:00
86e40f2707
feat(smalltrip,middleware): FormMethod middleware
2025-08-08 19:17:57 -03:00
40a6ff1e45
feat(smalltrip,multiplexer): pattern options and rules multiplexer
2025-08-08 19:17:57 -03:00
0d29f470d3
feat(smalltrip,multiplexer): form method multiplexer
2025-08-08 19:17:57 -03:00
ec99bf0d02
feat(smalltrip,multiplexer): Multiplexer interface constructor, alias to http.NewServeMux
2025-08-08 19:17:56 -03:00
226077cedd
feat(smalltrip,problem): expose context key of middleware
2025-08-08 19:17:01 -03:00
bb43d4803a
feat!(smalltrip,router): log handler type name and package on Handle and HandleFunc
2025-08-08 19:16:44 -03:00
cd50d412bb
docs(tinyssert): update Err variants of methods documentation
2025-07-30 19:18:33 -03:00
82e61f7a31
refactor(tinyssert): remove redudant return statements in disabledAssertions
2025-07-30 19:18:30 -03:00
e277964414
feat(tinyssert): AssertionsErr interface to provide error return values
2025-07-30 19:18:28 -03:00
982c2a4cb5
feat(smalltrip,problem): panic middleware
2025-07-30 19:15:18 -03:00
e158aebbd5
feat(smalltrip,problem): make WithDetail, WithDetailf and WithError append message if there is already one
2025-07-30 19:15:08 -03:00
b6a41a168b
fix(smalltrip,problem): name NewInternalServerError instead of NewInternalError
2025-07-30 19:14:59 -03:00
2acd042352
chore(smalltrip,problem): add license header to problem package files
2025-07-30 19:14:46 -03:00
93febe6efc
feat(smalltrip): remove exceptions package in favor of problem
2025-07-30 19:14:44 -03:00
770eeaa25c
feat(smalltrip,problem): use handler browser as default handler
2025-07-30 19:14:43 -03:00
5069ac6478
feat(smalltrip,problem): middleware support to set global handlers
2025-07-30 19:14:43 -03:00
47670daf55
feat(smalltrip,problem): handler browser
2025-07-30 19:14:43 -03:00
6fca911c8f
feat(smalltrip,problem): handler template
2025-07-30 19:14:42 -03:00
793b6180e7
refactor(smalltrip,problems): remove fallbacks from handlers
2025-07-30 19:14:42 -03:00
0f1d7a01d8
refactor(smalltrip,problems): rename http.go to handlers.go
2025-07-29 19:18:28 -03:00
ed8f1e9601
feat(smalltrip,problems): use Problem interface on handlers
2025-07-29 19:18:28 -03:00
22f2ea5fa8
feat(smalltrip,problems): Problem interface
2025-07-29 19:18:27 -03:00
61d9bee554
fix(smalltrip,problems): make problems be structs with Problem embedded
2025-07-29 19:15:10 -03:00
6ed38cf1cf
refactor(smalltrip,problems): define RetryAfter header parsing into separated type
2025-07-29 19:15:10 -03:00
42f2f114fa
feat(smallstrip,problems): 400s codes constructors and problems
2025-07-29 19:14:36 -03:00
e8fdd9cbf5
refactor(smallstrip,problems): make 500 error types distinct and not aliases
2025-07-29 19:14:36 -03:00
3c08d5dbec
feat(smalltrip,problems): 500s code constructors and problems
2025-07-04 19:15:27 -03:00
5fe4fae97e
feat(smalltrip,problems): http handler for problems (wip)
2025-07-04 19:15:26 -03:00
9ce32a5f6b
feat(smalltrip,problems): new problem package to handle 400 and 500 error codes
...
This is planned to replace the exceptions package, having a nicer and
more extendable API, based on the RFC 9457 (HTTP problems)
2025-07-04 19:15:24 -03:00
7ae5c14f6c
feat(smalltrip): use multiplexer interface instead of http.ServeMux
...
This will be useful for the future to provide something akin to
plugins/addons to the router.
2025-06-27 22:02:39 -03:00
3fc9631fbc
feat(smallstrip): WithMiddleware option
2025-06-27 22:01:13 -03:00
13f15a479b
chore(smalltrip): delete routes file
2025-06-27 21:59:55 -03:00
9f3fb63e3d
refactor(smalltrip): simplify router implementation
...
This removes all the parse route and route group code, since they
haven't a lot of use for it. Router is now just a small wrapper over Mux
to add middleware support.
2025-06-27 21:59:16 -03:00
c62be87c6a
docs(tinyssert): documentation about the functional options
2025-05-14 11:46:00 -03:00
fec910c22f
docs(tinyssert): documentation about the New constructor
2025-05-14 11:45:45 -03:00
2e9139c682
docs(tinyssert): follow revive's format for package documentation
2025-05-14 11:34:52 -03:00
52bf759e7f
docs(tinyssert): add example of using dependency injection
2025-05-14 11:33:34 -03:00
a0d8a88bef
feat(tinyssert): update top-level methods, export Default implementation
2025-05-14 11:33:10 -03:00
d425c35414
feat(tinyssert): update disabled assertions implementation
2025-05-14 11:32:32 -03:00