aboutsummaryrefslogtreecommitdiff
path: root/uri.go
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <oleksandr.red+github@gmail.com> 2023-02-10 15:34:49 +0200
committerGravatar GitHub <noreply@github.com> 2023-02-10 21:34:49 +0800
commitf84e2346ba6209d0527234bd38d736d2bf5052c0 (patch)
tree089fe472a2980d3e7274f581c0c29979a2c3c8de /uri.go
parentAdd missing fasthttp prefix in example usage (#1487) (diff)
downloadfasthttp-f84e2346ba6209d0527234bd38d736d2bf5052c0.tar.gz
fasthttp-f84e2346ba6209d0527234bd38d736d2bf5052c0.tar.bz2
fasthttp-f84e2346ba6209d0527234bd38d736d2bf5052c0.zip
Rename unexported funcs, vars to match common Go (#1488)
See https://github.com/golang/go/wiki/CodeReviewComments#initialisms and https://go.dev/doc/effective_go#mixed-caps
Diffstat (limited to 'uri.go')
-rw-r--r--uri.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/uri.go b/uri.go
index 7db06ab..a67732e 100644
--- a/uri.go
+++ b/uri.go
@@ -217,11 +217,11 @@ func (u *URI) SetSchemeBytes(scheme []byte) {
lowercaseBytes(u.scheme)
}
-func (u *URI) isHttps() bool {
+func (u *URI) isHTTPS() bool {
return bytes.Equal(u.scheme, strHTTPS)
}
-func (u *URI) isHttp() bool {
+func (u *URI) isHTTP() bool {
return len(u.scheme) == 0 || bytes.Equal(u.scheme, strHTTP)
}