From 8471c2d9d814d338b580e658b237d6c74ca03755 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Thu, 29 Jan 2015 22:52:21 -0700 Subject: [PATCH] Updated docs; renamed a couple utility files --- middleware/{util_recorder.go => recorder.go} | 0 middleware/{util_replacer.go => replacer.go} | 2 +- server/server.go | 4 ++++ 3 files changed, 5 insertions(+), 1 deletion(-) rename middleware/{util_recorder.go => recorder.go} (100%) rename middleware/{util_replacer.go => replacer.go} (97%) diff --git a/middleware/util_recorder.go b/middleware/recorder.go similarity index 100% rename from middleware/util_recorder.go rename to middleware/recorder.go diff --git a/middleware/util_replacer.go b/middleware/replacer.go similarity index 97% rename from middleware/util_replacer.go rename to middleware/replacer.go index b7369abc..a8ed289b 100644 --- a/middleware/util_replacer.go +++ b/middleware/replacer.go @@ -60,7 +60,7 @@ func NewReplacer(r *http.Request, rw *responseRecorder) replacer { return rep } -// replace performs a replacement of values on s and returns +// Replace performs a replacement of values on s and returns // the string with the replaced values. func (r replacer) Replace(s string) string { for placeholder, replacement := range r { diff --git a/server/server.go b/server/server.go index a12d91eb..29d8584f 100644 --- a/server/server.go +++ b/server/server.go @@ -1,3 +1,7 @@ +// Server implements a configurable, general-purpose web server. It +// relies on configurations obtained from the adjacent config package +// and can execute middleware as defined by the adjacent middleware +// package. package server import (