diff options
author | Oleksandr Redko <oleksandr.red+github@gmail.com> | 2023-02-10 15:34:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-10 21:34:49 +0800 |
commit | f84e2346ba6209d0527234bd38d736d2bf5052c0 (patch) | |
tree | 089fe472a2980d3e7274f581c0c29979a2c3c8de /uri.go | |
parent | Add missing fasthttp prefix in example usage (#1487) (diff) | |
download | fasthttp-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.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) } |