diff --git a/app.go b/app.go index ee7b468bb6..033de56cdf 100644 --- a/app.go +++ b/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 { diff --git a/color.go b/color.go index 0a47d81957..cbccd2ebee 100644 --- a/color.go +++ b/color.go @@ -52,7 +52,7 @@ type Colors struct { Reset string } -// Default color codes +// DefaultColors Default color codes var DefaultColors = Colors{ Black: "\u001b[90m", Red: "\u001b[91m",