Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #825 from xichengliudui/using-constant-block
Browse files Browse the repository at this point in the history
Use constant blocks to define constants instead of discrete definitions.
  • Loading branch information
allencloud authored Aug 16, 2019
2 parents b4143fc + 7174701 commit bb790fa
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions client/httputils.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,20 @@ import (
"time"
)

// UnixScheme is a scheme for unix.
const UnixScheme = "unix"
const (

// TCPScheme is a scheme for TCP.
const TCPScheme = "tcp"
// UnixScheme is a scheme for unix.
UnixScheme = "unix"

// HTTPScheme is a scheme for HTTP.
const HTTPScheme = "http"
// TCPScheme is a scheme for TCP.
TCPScheme = "tcp"

// HTTPSScheme is a scheme for HTTPS.
const HTTPSScheme = "https"
// HTTPScheme is a scheme for HTTP.
HTTPScheme = "http"

// HTTPSScheme is a scheme for HTTPS.
HTTPSScheme = "https"
)

// ParseHost inputs a host address string, and output four type:
// url.URL, basePath, address without scheme and an error.
Expand Down

0 comments on commit bb790fa

Please sign in to comment.