Merge pull request #931 from travisturner/uri-json-tags

add json tags to uri struct
This commit is contained in:
Travis Turner 2017-11-06 08:46:22 -06:00 • committed by GitHub
commit 7116232625
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

6
uri.go
View file

@ -43,9 +43,9 @@ var addressRegexp = regexp.MustCompile("^(([+a-z]+):\\/\\/)?([0-9a-z.-]+|\\[[:0-
// localhost
// :10101
type URI struct {
scheme string
host string
port uint16
scheme string `json:"scheme"`
host string `json:"host"`
port uint16 `json:"port"`
}
// DefaultURI creates and returns the default URI.