We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to make a struct like this:
type App struct { Server *endless.endlessServer Router *gin.Engine } func (a *App) Initialize(config *config.Config) { a.Server = endless.NewServer(fmt.Sprintf(":%d", a.Config.Server.Port), a.Router) }
Using this struct: https://github.com/fvbock/endless/blob/master/endless.go#L72
struct
But it's give me error:
cannot refer to unexported name *endless.endlessServer
How can i that endless reference in my own App struct?
endless
App
The text was updated successfully, but these errors were encountered:
type server interface { ListenAndServe() error } you can try it ?
Sorry, something went wrong.
Thank you @zheng013, since its been over 6 years, I honestly don't remember what I was trying to do here. LOL.
No branches or pull requests
I want to make a struct like this:
Using this
struct
: https://github.com/fvbock/endless/blob/master/endless.go#L72But it's give me error:
cannot refer to unexported name *endless.endlessServer
How can i that
endless
reference in my ownApp
struct?The text was updated successfully, but these errors were encountered: