Ryan Hamamura
5fd48eb5fa
style: normalize struct field alignment
...
CI / Build and Test (push) Successful in 39s
CI / Build and Test (pull_request) Successful in 33s
Run gofmt/goimports to fix whitespace alignment in struct literals,
field declarations, and import ordering.
2026-02-20 09:29:25 -10:00
Ryan Hamamura
532651552a
refactor: simplify OnInterval API to auto-start and return stop func
...
Replace the exported OnIntervalRoutine struct (Start/Stop/UpdateInterval)
with a single function that auto-starts the goroutine and returns an
idempotent stop closure. Uses close(channel) instead of send-on-channel,
fixing a potential deadlock when the goroutine exits via context disposal.
Closes #5 item 4.
2026-02-12 12:27:50 -10:00
Ryan Hamamura
a7ace9099f
feat: replace log with rs/zerolog for structured logging
...
Switch from the standard library log package to rs/zerolog with
ConsoleWriter for colorful terminal output in dev mode and JSON
output in production. Users can now provide their own logger via
Options.Logger or set the level via Options.LogLevel.
2026-01-31 08:18:24 -10:00
Ryan Hamamura
c77ccc0796
chore: rename module to github.com/ryanhamamura/via
...
Update module path and all internal imports to use the new repository location.
2026-01-14 10:47:11 -10:00
Joao Goncalves
20dad802a1
feat: replace Handler() method for HTTPServeMux() for better plugin and testing integration; remove via-plugin-picocss dependency from examples; add datastar h.H nodes for data-init, data-effect, and data-ignore-morph; update realtimechart example; other small improvements
2025-12-17 17:11:59 -01:00
Joao Goncalves
26268f698a
refactor: simplify oninterval routine; fix(runtime): session end handler; update realtime chart example
2025-12-04 12:40:36 -01:00
Joao Goncalves
6edace647e
fix(via_test): remove signal sync test that was bocking test execution
2025-11-25 22:54:00 -01:00
Joao Goncalves
0064150cbc
fix: patchChan loop ending after switching browser tab; feat: improve realtime chart example
2025-11-18 11:17:06 -01:00
Joao Goncalves
03019364ca
fix: component nil pointer on sync; improve realtimechart example
2025-11-15 03:01:53 -01:00
Joao Goncalves
80879216b2
fix: components not using parent page patchShan; fix: chat example nil pointer error when sync outside action
2025-11-15 02:34:27 -01:00
Joao Goncalves
03ce9808e6
feat: add devmode flag; introduce live reload support; update examples
2025-11-11 00:15:44 -01:00
Joao Goncalves
9f9e4eb568
refactor: move document head includes out of via configuration into their own append funcs; update examples
2025-11-09 03:17:03 -01:00
Joao Goncalves
a46c06b467
feat: introduce support for plugins
2025-11-07 02:45:58 -01:00
Joao Goncalves
798f024743
feat: improve real-time chart example; add small refinements to via core files
2025-11-07 00:44:48 -01:00
Joao Goncalves
c167f0c74f
feat: add real-time chart example
2025-11-05 17:29:29 -01:00