This website requires JavaScript.
2ce5d71249
chore(deps): update to go 1.25.2
main
Gustavo "Guz" L de Mello
2025-11-13 14:15:41 -03:00
d6fe09dbcd
chore(lint): update golangci-lint configuration to version 2
Gustavo "Guz" L de Mello
2025-10-21 21:47:30 -03:00
3e566d1847
chore(deps): update flakes
Gustavo "Guz" L de Mello
2025-10-21 21:47:15 -03:00
1e7f79bfbf
feat(xtemplate,hot): HotTemplate, providing hot reloading for text/ and html/template
Gustavo "Guz" L de Mello
2025-10-21 21:46:24 -03:00
0281e7ac20
feat(xtemplate): Template interface constructors based on text/ and html/template
Gustavo "Guz" L de Mello
2025-10-21 21:45:49 -03:00
997be04fc1
feat(xtemplate,text): wrapper for html/template.Template struct
Gustavo "Guz" L de Mello
2025-10-21 21:45:17 -03:00
67d255df68
feat(xtemplate,text): wrapper for text/template.Template struct
Gustavo "Guz" L de Mello
2025-10-21 21:45:11 -03:00
ad84857ea7
feat(xtemplate): init package, Template interface
Gustavo "Guz" L de Mello
2025-10-21 21:44:42 -03:00
6ea200aa64
chore: update module definition with new domain
Gustavo "Guz" L de Mello
2025-10-13 14:54:57 -03:00
f7698f8764
chore: remove smalltrip package from this repository
Gustavo "Guz" L de Mello
2025-08-11 19:17:06 -03:00
96f62468b0
chore(flake): pass pkgs via attributes parameter
Gustavo "Guz" L de Mello
2025-08-11 19:16:54 -03:00
eb6097ed46
feat(smalltrip,problem): problem multiplexer to handle 404 and 405 errors
Gustavo "Guz" L de Mello
2025-08-11 19:16:53 -03:00
86e40f2707
feat(smalltrip,middleware): FormMethod middleware
Gustavo "Guz" L de Mello
2025-08-08 19:17:57 -03:00
40a6ff1e45
feat(smalltrip,multiplexer): pattern options and rules multiplexer
Gustavo "Guz" L de Mello
2025-08-08 19:17:57 -03:00
0d29f470d3
feat(smalltrip,multiplexer): form method multiplexer
Gustavo "Guz" L de Mello
2025-08-08 19:17:57 -03:00
ec99bf0d02
feat(smalltrip,multiplexer): Multiplexer interface constructor, alias to http.NewServeMux
Gustavo "Guz" L de Mello
2025-08-08 19:17:56 -03:00
226077cedd
feat(smalltrip,problem): expose context key of middleware
Gustavo "Guz" L de Mello
2025-08-08 19:17:01 -03:00
bb43d4803a
feat!(smalltrip,router): log handler type name and package on Handle and HandleFunc
Gustavo "Guz" L de Mello
2025-08-08 19:16:44 -03:00
cd50d412bb
docs(tinyssert): update Err variants of methods documentation
Gustavo "Guz" L de Mello
2025-07-30 19:18:33 -03:00
82e61f7a31
refactor(tinyssert): remove redudant return statements in disabledAssertions
Gustavo "Guz" L de Mello
2025-07-30 19:18:30 -03:00
e277964414
feat(tinyssert): AssertionsErr interface to provide error return values
Gustavo "Guz" L de Mello
2025-07-30 19:18:28 -03:00
982c2a4cb5
feat(smalltrip,problem): panic middleware
Gustavo "Guz" L de Mello
2025-07-30 19:15:18 -03:00
e158aebbd5
feat(smalltrip,problem): make WithDetail, WithDetailf and WithError append message if there is already one
Gustavo "Guz" L de Mello
2025-07-30 19:15:08 -03:00
b6a41a168b
fix(smalltrip,problem): name NewInternalServerError instead of NewInternalError
Gustavo "Guz" L de Mello
2025-07-30 19:14:59 -03:00
2acd042352
chore(smalltrip,problem): add license header to problem package files
Gustavo "Guz" L de Mello
2025-07-30 19:14:46 -03:00
93febe6efc
feat(smalltrip): remove exceptions package in favor of problem
Gustavo "Guz" L de Mello
2025-07-30 19:14:44 -03:00
770eeaa25c
feat(smalltrip,problem): use handler browser as default handler
Gustavo "Guz" L de Mello
2025-07-30 19:14:43 -03:00
5069ac6478
feat(smalltrip,problem): middleware support to set global handlers
Gustavo "Guz" L de Mello
2025-07-30 19:14:43 -03:00
47670daf55
feat(smalltrip,problem): handler browser
Gustavo "Guz" L de Mello
2025-07-30 19:14:43 -03:00
6fca911c8f
feat(smalltrip,problem): handler template
Gustavo "Guz" L de Mello
2025-07-30 19:14:42 -03:00
793b6180e7
refactor(smalltrip,problems): remove fallbacks from handlers
Gustavo "Guz" L de Mello
2025-07-30 19:14:42 -03:00
0f1d7a01d8
refactor(smalltrip,problems): rename http.go to handlers.go
Gustavo "Guz" L de Mello
2025-07-29 19:18:28 -03:00
ed8f1e9601
feat(smalltrip,problems): use Problem interface on handlers
Gustavo "Guz" L de Mello
2025-07-29 19:18:28 -03:00
22f2ea5fa8
feat(smalltrip,problems): Problem interface
Gustavo "Guz" L de Mello
2025-07-29 19:18:27 -03:00
61d9bee554
fix(smalltrip,problems): make problems be structs with Problem embedded
Gustavo "Guz" L de Mello
2025-07-29 19:15:10 -03:00
6ed38cf1cf
refactor(smalltrip,problems): define RetryAfter header parsing into separated type
Gustavo "Guz" L de Mello
2025-07-29 19:15:10 -03:00
42f2f114fa
feat(smallstrip,problems): 400s codes constructors and problems
Gustavo "Guz" L de Mello
2025-07-29 19:14:36 -03:00
e8fdd9cbf5
refactor(smallstrip,problems): make 500 error types distinct and not aliases
Gustavo "Guz" L de Mello
2025-07-29 19:14:36 -03:00
3c08d5dbec
feat(smalltrip,problems): 500s code constructors and problems
Gustavo "Guz" L de Mello
2025-07-04 19:15:27 -03:00
5fe4fae97e
feat(smalltrip,problems): http handler for problems (wip)
Gustavo "Guz" L de Mello
2025-07-04 19:15:26 -03:00
9ce32a5f6b
feat(smalltrip,problems): new problem package to handle 400 and 500 error codes
Gustavo "Guz" L de Mello
2025-07-04 19:15:24 -03:00
7ae5c14f6c
feat(smalltrip): use multiplexer interface instead of http.ServeMux
Gustavo "Guz" L de Mello
2025-06-27 22:02:39 -03:00
3fc9631fbc
feat(smallstrip): WithMiddleware option
Gustavo "Guz" L de Mello
2025-06-27 22:01:13 -03:00
13f15a479b
chore(smalltrip): delete routes file
Gustavo "Guz" L de Mello
2025-06-27 21:59:55 -03:00
9f3fb63e3d
refactor(smalltrip): simplify router implementation
Gustavo "Guz" L de Mello
2025-06-27 21:59:16 -03:00
c62be87c6a
docs(tinyssert): documentation about the functional options
Gustavo "Guz" L de Mello
2025-05-14 11:46:00 -03:00
fec910c22f
docs(tinyssert): documentation about the New constructor
Gustavo "Guz" L de Mello
2025-05-14 11:45:45 -03:00
2e9139c682
docs(tinyssert): follow revive's format for package documentation
Gustavo "Guz" L de Mello
2025-05-14 11:34:52 -03:00
52bf759e7f
docs(tinyssert): add example of using dependency injection
Gustavo "Guz" L de Mello
2025-05-14 11:33:34 -03:00
a0d8a88bef
feat(tinyssert): update top-level methods, export Default implementation
Gustavo "Guz" L de Mello
2025-05-14 11:33:10 -03:00
d425c35414
feat(tinyssert): update disabled assertions implementation
Gustavo "Guz" L de Mello
2025-05-14 11:32:32 -03:00
62e4743aba
feat(tinyssert): major refactor, APIs now return a Failure error instead of booleans, options are now functional
Gustavo "Guz" L de Mello
2025-05-14 11:32:08 -03:00
9c59adeba8
docs(tinyssert): add documentation about msg argument in methods
Gustavo "Guz" L de Mello
2025-05-14 11:30:42 -03:00
ceda7536f1
fix(smalltrip,exception): make MethodNotAllowed error more clear about allowed methods
Gustavo "Guz" L de Mello
2025-03-11 19:28:25 -03:00
56e822a184
feat(smallstrip,middleware): rename Dev middleware to DisableCache
Gustavo "Guz" L de Mello
2025-03-06 18:44:33 -03:00
0ccb26ab78
refactor(smalltrip,exception): rename exceptions package to exception, singular form
Gustavo "Guz" L de Mello
2025-03-05 13:51:22 -03:00
883118156a
fix(smallstrip,exceptions): missing return causing nil de-reference
Gustavo "Guz" L de Mello
2025-03-05 12:21:50 -03:00
a2452dd239
fix(smallstrip,exceptions): superfulous call when responding exception after first Write
Gustavo "Guz" L de Mello
2025-03-05 11:51:14 -03:00
9055d4ad3a
feat(smallstrip,exceptions): improve default exception template
Gustavo "Guz" L de Mello
2025-03-05 10:41:58 -03:00
05619c382c
revert(smalltrip,middleware): remove net.ParseIP to validate ip address
Gustavo "Guz" L de Mello
2025-03-05 09:57:04 -03:00
a16254848b
fix(smalltrip): middlewares are not wrapped with previous ones
Gustavo "Guz" L de Mello
2025-03-05 09:45:56 -03:00
3851ae51f7
revert(smalltrip,middleware): remove premature optimization from logger
Gustavo "Guz" L de Mello
2025-03-05 09:45:31 -03:00
f3317501f7
fix(smalltrip,middleware): cache directives using floats instead of int
Gustavo "Guz" L de Mello
2025-03-05 09:12:13 -03:00
357ec79656
chore(deps): remove unused dependencies from go.mod
Gustavo "Guz" L de Mello
2025-03-04 17:41:24 -03:00
90a5169f1b
chore(smalltrip): format the copyright author line
Gustavo "Guz" L de Mello
2025-02-27 16:21:57 -03:00
49192ad704
chore(smalltrip): add LICENSE file and headers
Gustavo "Guz" L de Mello
2025-02-27 16:21:01 -03:00
88631bff47
fix(smalltrip,middleware): import statement still poiting to groute
Gustavo "Guz" L de Mello
2025-02-27 16:20:35 -03:00
19297f7658
chore(groute): remove unused groute package
Gustavo "Guz" L de Mello
2025-02-27 15:45:07 -03:00
98f1701a84
chore(tinyssert): update names in README.md
Gustavo "Guz" L de Mello
2025-02-27 15:44:26 -03:00
645690b7f8
refactor(smalltrip): remove unecessary length argument in make
Gustavo "Guz" L de Mello
2025-02-26 19:30:25 -03:00
1a40569716
refactor(smalltrip): rename handleRouter to handleGroup
Gustavo "Guz" L de Mello
2025-02-26 19:30:06 -03:00
1208c26780
refactor(tinyssert): remove uncessessary else statement
Gustavo "Guz" L de Mello
2025-02-26 19:29:36 -03:00
81e36b8acc
docs(tinyssert): make NewDisableAssertion docs follow revive's rules
Gustavo "Guz" L de Mello
2025-02-26 19:24:25 -03:00
25582aabf4
refactor(tinyssert): move NewDisabledAssertions definition closer to disabledAssertions
Gustavo "Guz" L de Mello
2025-02-26 19:20:19 -03:00
d8f92c848e
refactor(tinyssert): remove unecessary undercode receiver
Gustavo "Guz" L de Mello
2025-02-26 19:19:02 -03:00
58a158f446
chore(tinissert): fix path of the original file in license notice
Gustavo "Guz" L de Mello
2025-02-26 19:07:25 -03:00
57f8113401
fix(smallstrip,middleware): rename bool variable to not conflict with built-in id
Gustavo "Guz" L de Mello
2025-02-26 18:38:49 -03:00
a6285d27a0
feat(smalltrip,middleware): check interface of directives struct
Gustavo "Guz" L de Mello
2025-02-26 18:37:34 -03:00
abf96bf3f6
refactor(smalltrip,exceptions): use std log levels as Severity Levels
Gustavo "Guz" L de Mello
2025-02-26 18:12:22 -03:00
a8439efc49
feat(smalltrip,exceptions): make panic errors be of severity FATAL
Gustavo "Guz" L de Mello
2025-02-26 17:51:21 -03:00
7bbd2836a6
feat(smalltrip,exceptions): PanicMiddleware to recover from unexcepted panics
Gustavo "Guz" L de Mello
2025-02-26 17:48:44 -03:00
b6101c7d1d
docs(smalltrip,exceptions): add MDN documentation for each status code on 500s contructors
Gustavo "Guz" L de Mello
2025-02-26 16:47:03 -03:00
ad17abe01c
feat(smalltrip,exceptions): retryAfter in 503 Service Unavailable exceptionn
Gustavo "Guz" L de Mello
2025-02-26 16:39:35 -03:00
59a5ea56eb
docs(smalltrip,exceptions): document all 500s status code constructors
Gustavo "Guz" L de Mello
2025-02-26 16:03:15 -03:00
b226d51bda
feat(smalltrip,exceptions): 500 exceptions constructors
Gustavo "Guz" L de Mello
2025-02-26 15:58:23 -03:00
5feeb15561
docs(smalltrip,exceptions): add MDN documentation for each status code on 400s contructors
Gustavo "Guz" L de Mello
2025-02-26 10:54:38 -03:00
affe3a61d1
docs(smalltrip,exceptions): document all 400s status code constructors
Gustavo "Guz" L de Mello
2025-02-26 10:54:18 -03:00
05af766cf2
feat(smalltrip,exceptions): constructor for all 400 status codes
Gustavo "Guz" L de Mello
2025-02-26 10:51:10 -03:00
5eabc13516
feat(smalltrip,exceptions): exception constructor
Gustavo "Guz" L de Mello
2025-02-26 10:47:19 -03:00
5c562eb363
feat(smalltrip,exceptions): headers field for additional headers to be sent with exception
Gustavo "Guz" L de Mello
2025-02-25 16:00:21 -03:00
5ff4f3a79b
feat(smalltrip,exceptions): Data field for additional contextual data
Gustavo "Guz" L de Mello
2025-02-25 15:59:48 -03:00
d461f2a8c8
feat(smalltrip,exceptions): Severity type implementation
Gustavo "Guz" L de Mello
2025-02-25 14:31:23 -03:00
cef5a31545
feat(smalltrip,exceptions): exception middleware to provide handlers depending of Accept header
Gustavo "Guz" L de Mello
2025-02-25 14:31:02 -03:00
ef8261752f
feat(smalltrip,exceptions): use a JSON handler if none is provided via the context
Gustavo "Guz" L de Mello
2025-02-25 14:30:14 -03:00
efceb2efd6
feat(smalltrip): new exceptions package for structurerd error codes
Gustavo "Guz" L de Mello
2025-02-25 14:28:07 -03:00
b9726e04a0
chore: configure golangci-lint rules
Gustavo "Guz" L de Mello
2025-02-24 08:06:21 -03:00
dec6bcb1a1
feat(smalltrip): TODO PersistentCache middlware
Gustavo "Guz" L de Mello
2025-02-24 08:05:37 -03:00
054bcefdd7
feat(smalltrip): TODO SmartCache middlware
Gustavo "Guz" L de Mello
2025-02-24 08:04:49 -03:00
aa4f34e3f4
feat(smalltrip): cache middleware
Gustavo "Guz" L de Mello
2025-02-24 08:04:28 -03:00
7593ba9870
feat(smalltrip): logger middleware
Gustavo "Guz" L de Mello
2025-02-24 08:03:53 -03:00