summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/glaze.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/glaze.go b/src/glaze.go
index efb9ab9..c70a2ec 100644
--- a/src/glaze.go
+++ b/src/glaze.go
@@ -21,9 +21,9 @@ import (
-type patternPath struct {}
+type patternPath struct{}
-type pathInfo struct {
+type pathInfo struct{
pattern string
path string
label string
@@ -97,8 +97,8 @@ func handleProxy(info pathInfo, w http.ResponseWriter, r *http.Request) error {
target.Scheme = "http"
target.Host = "localhost"
- httpClient := http.Client {
- Transport: &http.Transport {
+ httpClient := http.Client{
+ Transport: &http.Transport{
DialContext: func(_ context.Context, _ string, _ string) (net.Conn, error) {
return net.Dial("unix", info.path)
},
@@ -192,7 +192,7 @@ func handlerForDynPath(path string) (pathInfo, func(pathInfo, http.ResponseWrite
label, fn := handlerFuncFor(fileInfo.Mode())
g.Info("Handler picked", "handler-picked", "label", label)
- info = pathInfo {
+ info = pathInfo{
path: path,
label: label,
fileHandle: fileHandle,
@@ -262,7 +262,7 @@ func listen(fromAddr string) net.Listener {
}
func start(listener net.Listener) {
- server := http.Server {}
+ server := http.Server{}
err := server.Serve(listener)
g.FatalIf(err)
}