Skip to content

Commit 6e51f80

Browse files
authored
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
1 parent 709c523 commit 6e51f80

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ func (app *App) handleTrustedProxy(ipAddress string) {
570570
}
571571
}
572572

573-
// You can use SetTLSHandler to use ClientHelloInfo when using TLS with Listener.
573+
// SetTLSHandler You can use SetTLSHandler to use ClientHelloInfo when using TLS with Listener.
574574
func (app *App) SetTLSHandler(tlsHandler *TLSHandler) {
575575
// Attach the tlsHandler to the config
576576
app.mutex.Lock()
@@ -608,7 +608,7 @@ func (app *App) Mount(prefix string, fiber *App) Router {
608608
return app
609609
}
610610

611-
// Assign name to specific route.
611+
// Name Assign name to specific route.
612612
func (app *App) Name(name string) Router {
613613
app.mutex.Lock()
614614
if strings.HasPrefix(app.latestRoute.path, app.latestGroup.Prefix) {
@@ -625,7 +625,7 @@ func (app *App) Name(name string) Router {
625625
return app
626626
}
627627

628-
// Get route by name
628+
// GetRoute Get route by name
629629
func (app *App) GetRoute(name string) Route {
630630
for _, routes := range app.stack {
631631
for _, route := range routes {

color.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ type Colors struct {
5252
Reset string
5353
}
5454

55-
// Default color codes
55+
// DefaultColors Default color codes
5656
var DefaultColors = Colors{
5757
Black: "\u001b[90m",
5858
Red: "\u001b[91m",

0 commit comments

Comments
 (0)