added to docs

master
Charles Iliya Krempeaux 2015-10-10 16:46:41 -07:00
parent e2f685776b
commit 6aefee528e
1 changed files with 8 additions and 0 deletions

View File

@ -8,6 +8,7 @@ import (
) )
// PrettyWritingRouter returns an initialized PrettyWritingRouter
func NewPrettyWritingRouter(writer io.Writer) *PrettyWritingRouter { func NewPrettyWritingRouter(writer io.Writer) *PrettyWritingRouter {
router := PrettyWritingRouter{ router := PrettyWritingRouter{
writer:writer, writer:writer,
@ -18,6 +19,13 @@ func NewPrettyWritingRouter(writer io.Writer) *PrettyWritingRouter {
// PrettyWritingRouter is a router that writes a pretty version of
// the log it was give (including COLORS!) to the writer it was
// given when it was created.
//
// A PrettyWritingRouter is appropriate for a deployment (i.e., "DEV")
// deployment enviornment. (And probably not appropriate a production
// (i.e., "PROD") deployment environment.)
type PrettyWritingRouter struct { type PrettyWritingRouter struct {
writer io.Writer writer io.Writer
} }