sync
This commit is contained in:
parent
57bc8ada40
commit
978310c0d8
|
@ -5,6 +5,7 @@ import (
|
|||
"log/slog"
|
||||
|
||||
"go.uber.org/fx"
|
||||
"gfx.cafe/util/go/fxplus"
|
||||
)
|
||||
|
||||
type {{title Package}} struct {
|
||||
|
@ -22,6 +23,7 @@ type Result struct {
|
|||
fx.Out
|
||||
|
||||
Output *{{title Package}}
|
||||
Healther fxplus.Healther
|
||||
}
|
||||
|
||||
func New(p Params) (r Result, err error) {
|
||||
|
@ -29,9 +31,10 @@ func New(p Params) (r Result, err error) {
|
|||
o.log = p.Log
|
||||
|
||||
r.Output = o
|
||||
r.Healther = o
|
||||
return
|
||||
}
|
||||
|
||||
func (o *{{title Package}}) Health(ctx context.Context) (bool, error) {
|
||||
return true, nil
|
||||
func (o *{{title Package}}) Health(ctx context.Context) (error) {
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ if [ "$#" -eq 0 ]; then
|
|||
git commit -m "a"
|
||||
else
|
||||
array=("$@")
|
||||
str="'${array[@]}'"
|
||||
str="${array[@]}"
|
||||
git commit -m "$str"
|
||||
fi
|
||||
git push
|
||||
|
|
Loading…
Reference in New Issue