add json tags to uri struct

This commit is contained in:
Travis Turner 2017-11-06 08:38:08 -06:00
parent 638e328455
commit f94a2a0cfc
No known key found for this signature in database
GPG key ID: 7F08008DFD9314C9

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.