Skip to content

Commit

Permalink
Prepare v0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
infogulch committed Apr 6, 2024
1 parent ca4842e commit c1294c1
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 16 deletions.
14 changes: 8 additions & 6 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
- [ ] Add .TemplateLazy that renders a template to a io.ReadSeeker after the
first call to a method. Can be used for mail, servecontent, etc
- https://github.com/spatialcurrent/go-lazy ?
- [ ] Add NATS provider:
- [ ] Request-Reply
- [ ] KV
- [ ] Add mail module:
- [ ] Send mail, send mail by rendering template
- https://github.com/Shopify/gomail
Expand Down Expand Up @@ -53,6 +50,8 @@

# BACKLOG

- [ ] NATS provider:
- [ ] Request-Reply
- [ ] Look into https://github.com/42atomys/sprout
- [ ] Review https://github.com/hairyhenderson/gomplate for data source ideas
- [ ] Fix `superfluous response.WriteHeader call from github.com/felixge/httpsnoop.(*Metrics).CaptureMetrics` https://go.dev/play/p/spBB4w7nBCZ
Expand All @@ -77,10 +76,13 @@

## next

## v0.6.0 - Apr 2024

- Rename ConfigOverride to Option
- Add NATS provider:
- [x] Subscribe to subject, loop on receive to send via open SSE connection
- [x] Publish message to subject
- [x] Add basic IM demo
- [x] Publish, Subscribe to subject, loop on receive to send via open SSE connection
- [x] Add basic multiuser chat demo
- [x] KV: Get/Put/Delete/Purge/Watch

## v0.5.2 - Mar 2024

Expand Down
11 changes: 4 additions & 7 deletions app/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ module github.com/infogulch/xtemplate/app

go 1.22.1

require github.com/infogulch/xtemplate v0.5.2

require github.com/infogulch/xtemplate/providers/nats v0.0.0-local

replace github.com/infogulch/xtemplate => ../

replace github.com/infogulch/xtemplate/providers/nats => ../providers/nats
require (
github.com/infogulch/xtemplate v0.6.0
github.com/infogulch/xtemplate/providers/nats v0.0.0-20240405225825-ca4842e58f05
)

require (
github.com/alexflint/go-arg v1.4.3
Expand Down
4 changes: 4 additions & 0 deletions app/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ github.com/imdario/mergo v0.3.16 h1:wwQJbIsHYGMUyLSPrEq1CT16AhnhNJQ51+4fdHUnCl4=
github.com/imdario/mergo v0.3.16/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY=
github.com/infogulch/watch v0.2.0 h1:slnC/9HWtpI2pWAbJvX4VwGrCDw03SKJU0DBu0xQjbQ=
github.com/infogulch/watch v0.2.0/go.mod h1:FAtXJmlWcqqbiqA/M97ZS0ZM7XKgzypk3nVJZxSO6fI=
github.com/infogulch/xtemplate v0.6.0 h1:Ty2dKbkWBxc3P0vC62cqP1BLLTKSYkArFPlv6aHMisg=
github.com/infogulch/xtemplate v0.6.0/go.mod h1:tD3PKW/J3SZyC4m5tObaiDDd8bBn/+pI/FmAnmIfzfI=
github.com/infogulch/xtemplate/providers/nats v0.0.0-20240405225825-ca4842e58f05 h1:GGK9auLp2BukGs86YRAbJNCF7iC5rIM6VcvQAbx5EsQ=
github.com/infogulch/xtemplate/providers/nats v0.0.0-20240405225825-ca4842e58f05/go.mod h1:aGvDnfukrWU8r3roZbbpWR007wdRy09IBo+jEHCXwdE=
github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg=
github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw=
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
Expand Down
4 changes: 1 addition & 3 deletions providers/nats/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ module github.com/infogulch/xtemplate/providers/nats
go 1.22.1

require (
github.com/infogulch/xtemplate v0.5.2
github.com/infogulch/xtemplate v0.6.0
github.com/nats-io/nats-server/v2 v2.10.12
github.com/nats-io/nats.go v1.34.1
)

replace github.com/infogulch/xtemplate => ../../

require (
github.com/BurntSushi/toml v1.3.2 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
Expand Down
2 changes: 2 additions & 0 deletions providers/nats/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ github.com/huandu/xstrings v1.4.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq
github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
github.com/imdario/mergo v0.3.16 h1:wwQJbIsHYGMUyLSPrEq1CT16AhnhNJQ51+4fdHUnCl4=
github.com/imdario/mergo v0.3.16/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY=
github.com/infogulch/xtemplate v0.6.0 h1:Ty2dKbkWBxc3P0vC62cqP1BLLTKSYkArFPlv6aHMisg=
github.com/infogulch/xtemplate v0.6.0/go.mod h1:tD3PKW/J3SZyC4m5tObaiDDd8bBn/+pI/FmAnmIfzfI=
github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg=
github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw=
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
Expand Down

0 comments on commit c1294c1

Please sign in to comment.