From f94a2a0cfc9f7b2f512372ebb29bca61568fcb1d Mon Sep 17 00:00:00 2001 From: Travis Turner Date: Mon, 6 Nov 2017 08:38:08 -0600 Subject: [PATCH] add json tags to uri struct --- uri.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uri.go b/uri.go index 79c7cd4ac..b361cdf6a 100644 --- a/uri.go +++ b/uri.go @@ -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.