This commit is contained in:
a 2024-04-12 14:03:58 -05:00
parent 57bc8ada40
commit 978310c0d8
Signed by: a
GPG Key ID: 374BC539FE795AF0
2 changed files with 6 additions and 3 deletions

View File

@ -5,6 +5,7 @@ import (
"log/slog" "log/slog"
"go.uber.org/fx" "go.uber.org/fx"
"gfx.cafe/util/go/fxplus"
) )
type {{title Package}} struct { type {{title Package}} struct {
@ -22,6 +23,7 @@ type Result struct {
fx.Out fx.Out
Output *{{title Package}} Output *{{title Package}}
Healther fxplus.Healther
} }
func New(p Params) (r Result, err error) { func New(p Params) (r Result, err error) {
@ -29,9 +31,10 @@ func New(p Params) (r Result, err error) {
o.log = p.Log o.log = p.Log
r.Output = o r.Output = o
r.Healther = o
return return
} }
func (o *{{title Package}}) Health(ctx context.Context) (bool, error) { func (o *{{title Package}}) Health(ctx context.Context) (error) {
return true, nil return nil
} }

View File

@ -6,7 +6,7 @@ if [ "$#" -eq 0 ]; then
git commit -m "a" git commit -m "a"
else else
array=("$@") array=("$@")
str="'${array[@]}'" str="${array[@]}"
git commit -m "$str" git commit -m "$str"
fi fi
git push git push