mirror of https://github.com/gofiber/fiber.git
update code comment for helping IDEs (#2095)
* fix unhandled errors
* fix unhandled error in cache package test
* omit variable type
* omit variable type
* rename variable because collide with the imported package name
* handle file error on closing
* fix unhandled in common_linux.go
* fix unhandled errors in helpers_test.go
* fix unhandled errors in listen_test.go
* remove unused parameter in emptyHandler method
* refactor path.go
* unhandled error in hooks test
* fix unhandled errors in app_test.go
* fix unhandled errors in ctx_test.go
* ✨ fix unhandled errors in helpers_test.go
* revert app_test.go
* remove redundant parentheses and update comments
* update code comment for helping ide
* update code comment for helping ide
pull/2099/head
parent
709c52301c
commit
6e51f801fb
6
app.go
6
app.go
|
@ -570,7 +570,7 @@ func (app *App) handleTrustedProxy(ipAddress string) {
|
|||
}
|
||||
}
|
||||
|
||||
// You can use SetTLSHandler to use ClientHelloInfo when using TLS with Listener.
|
||||
// SetTLSHandler You can use SetTLSHandler to use ClientHelloInfo when using TLS with Listener.
|
||||
func (app *App) SetTLSHandler(tlsHandler *TLSHandler) {
|
||||
// Attach the tlsHandler to the config
|
||||
app.mutex.Lock()
|
||||
|
@ -608,7 +608,7 @@ func (app *App) Mount(prefix string, fiber *App) Router {
|
|||
return app
|
||||
}
|
||||
|
||||
// Assign name to specific route.
|
||||
// Name Assign name to specific route.
|
||||
func (app *App) Name(name string) Router {
|
||||
app.mutex.Lock()
|
||||
if strings.HasPrefix(app.latestRoute.path, app.latestGroup.Prefix) {
|
||||
|
@ -625,7 +625,7 @@ func (app *App) Name(name string) Router {
|
|||
return app
|
||||
}
|
||||
|
||||
// Get route by name
|
||||
// GetRoute Get route by name
|
||||
func (app *App) GetRoute(name string) Route {
|
||||
for _, routes := range app.stack {
|
||||
for _, route := range routes {
|
||||
|
|
Loading…
Reference in New Issue