Skip to content

Commit 0853598

Browse files
committed
fix: update
1 parent f5c3ab8 commit 0853598

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
(a) You must give any other recipients of the Work or
9595
Derivative Works a copy of this License; and
9696

97-
(p) You must cause any modified files to carry prominent notices
97+
(b) You must cause any modified files to carry prominent notices
9898
stating that You changed the files; and
9999

100100
(c) You must retain, in the Source form of any Derivative Works

example/rest_entry/entry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func GetEntry() golug_entry.Entry {
2323
return ctx.Next()
2424
})
2525

26-
golug.WithBeforeStart(func(ctx *dix_run.BeforeStartCtx) {
26+
golug.BeforeStart(func(ctx *dix_run.BeforeStartCtx) {
2727
l, err := net.Listen("tcp", ":8081")
2828
xerror.Panic(err)
2929
go http.Serve(l, nil)

example/tickrun/server/entry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func GetEntry() golug_entry.Entry {
1818
ent.Description("api server")
1919
ent.Router(router.Api)
2020

21-
golug.WithBeforeStart(func(ctx *dix_run.BeforeStartCtx) {
21+
golug.BeforeStart(func(ctx *dix_run.BeforeStartCtx) {
2222
db := golug_db.GetClient()
2323
xerror.Exit(db.Sync2(
2424
new(models.Task),

golug.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ func RegisterPlugin(plugin golug_plugin.Plugin, opts ...golug_plugin.ManagerOpti
3131
defer xerror.RespExit()
3232
golug_plugin.Register(plugin, opts...)
3333
}
34-
func WithBeforeStart(fn func(ctx *dix_run.BeforeStartCtx)) {
34+
func BeforeStart(fn func(ctx *dix_run.BeforeStartCtx)) {
3535
defer xerror.RespExit()
3636
xerror.Next().Panic(dix_run.WithBeforeStart(fn))
3737
}
38-
func WithAfterStart(fn func(ctx *dix_run.AfterStartCtx)) {
38+
func AfterStart(fn func(ctx *dix_run.AfterStartCtx)) {
3939
defer xerror.RespExit()
4040
xerror.Next().Panic(dix_run.WithAfterStart(fn))
4141
}
42-
func WithBeforeStop(fn func(ctx *dix_run.BeforeStopCtx)) {
42+
func BeforeStop(fn func(ctx *dix_run.BeforeStopCtx)) {
4343
defer xerror.RespExit()
4444
xerror.Next().Panic(dix_run.WithBeforeStop(fn))
4545
}
46-
func WithAfterStop(fn func(ctx *dix_run.AfterStopCtx)) {
46+
func AfterStop(fn func(ctx *dix_run.AfterStopCtx)) {
4747
defer xerror.RespExit()
4848
xerror.Next().Panic(dix_run.WithAfterStop(fn))
4949
}

0 commit comments

Comments
 (0)