-
Notifications
You must be signed in to change notification settings - Fork 343
Open
Description
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
But it's give me error:
cannot refer to unexported name *endless.endlessServer
How can i that endless reference in my own App struct?
Metadata
Metadata
Assignees
Labels
No labels