Skip to content
New issue

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

update code comment for helping IDEs #2095

Merged
merged 31 commits into from Sep 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
fe7f105
fix unhandled errors
Kamandlou Aug 26, 2022
7f1028d
fix unhandled error in cache package test
Kamandlou Aug 26, 2022
bf387fa
omit variable type
Kamandlou Aug 26, 2022
d09213b
omit variable type
Kamandlou Aug 26, 2022
14b6646
rename variable because collide with the imported package name
Kamandlou Aug 26, 2022
1c45f7e
handle file error on closing
Kamandlou Aug 26, 2022
a021d0c
Merge branch 'gofiber:master' into master
Kamandlou Aug 26, 2022
89bf878
fix unhandled in common_linux.go
Kamandlou Aug 28, 2022
8dded84
Merge branch 'gofiber:master' into master
Kamandlou Aug 29, 2022
08a9256
fix unhandled errors in helpers_test.go
Kamandlou Aug 29, 2022
038315d
fix unhandled errors in listen_test.go
Kamandlou Aug 30, 2022
e5b8dad
remove unused parameter in emptyHandler method
Kamandlou Aug 30, 2022
92e6920
refactor path.go
Kamandlou Sep 1, 2022
3086fd2
unhandled error in hooks test
Kamandlou Sep 1, 2022
73c9987
Merge branch 'gofiber:master' into master
Kamandlou Sep 2, 2022
8b466c3
fix unhandled errors in app_test.go
Kamandlou Sep 2, 2022
f1f46b1
Merge pull request #1 from Kamandlou/dev
Kamandlou Sep 2, 2022
a125a5f
fix unhandled errors in ctx_test.go
Kamandlou Sep 2, 2022
d00514c
Merge pull request #2 from Kamandlou/dev
Kamandlou Sep 3, 2022
81a0bc5
✨ fix unhandled errors in helpers_test.go
Kamandlou Sep 4, 2022
9ba9001
Merge branch 'gofiber:master' into master
Kamandlou Sep 4, 2022
83885d6
Merge pull request #3 from Kamandlou/dev
Kamandlou Sep 4, 2022
cec4b83
revert app_test.go
Kamandlou Sep 5, 2022
02aa986
Merge pull request #4 from Kamandlou/dev
Kamandlou Sep 5, 2022
afd7b13
remove redundant parentheses and update comments
Kamandlou Sep 11, 2022
9bbd11b
Merge branch 'gofiber:master' into master
Kamandlou Sep 11, 2022
8f7815b
Merge pull request #5 from Kamandlou/dev
Kamandlou Sep 11, 2022
85f8db4
update code comment for helping ide
Kamandlou Sep 16, 2022
6b26a95
update code comment for helping ide
Kamandlou Sep 16, 2022
fa957c4
Merge branch 'gofiber:master' into master
Kamandlou Sep 16, 2022
998de32
Merge pull request #6 from Kamandlou/dev
Kamandlou Sep 16, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions app.go
Expand Up @@ -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()
Expand Down Expand Up @@ -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) {
Expand All @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion color.go
Expand Up @@ -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",
Expand Down