Skip to content

Commit

Permalink
Adjust function name and comments to better reflect what it does.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcvernaleo committed Jul 31, 2013
1 parent 278b71a commit e693f0c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions controller.go
Expand Up @@ -188,10 +188,11 @@ func (c *Controller) RenderFile(file *os.File, delivery ContentDisposition) Resu
} }
} }


// renderMemory is like RenderFile() expect that it renders a file that is kept // RenderBinary is like RenderFile() except that it instead of a file on disk,
// in memory rather than an ondisk os.File so content can be delivered // it renders data from memory (which could be a file that has not been written,
// dynamically. // the output from some function, or bytes streamed from somewhere else, as long
func (c *Controller) RenderMemory(memfile io.Reader, filename string, delivery ContentDisposition) Result { // it implements io.Reader).
func (c *Controller) RenderBinary(memfile io.Reader, filename string, delivery ContentDisposition) Result {
var ( var (
modtime = time.Now() modtime = time.Now()
) )
Expand Down

0 comments on commit e693f0c

Please sign in to comment.