Skip to content

How to use multi bindings in v2? #1499

Answered by leaanthony
yzqdev asked this question in Q&A
Discussion options

You must be logged in to vote

Good question! There are many ways (as this is just a Go question). For this scenario I would use a function in OnStartup to call methods on your structs with the context.

OnStartup: func(ctx context.context) {
  app.Init(ctx)
  config.Init(ctx)
},

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@yzqdev
Comment options

@leaanthony
Comment options

Answer selected by yzqdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants