stretchr / goweb

A lightweight RESTful web framework for Go
632 stars 61 forks source link

Why Formatter.Format's return value is []uint8 but []byte? #3

Closed tenntenn closed 11 years ago

tenntenn commented 11 years ago

Hi, I have a question. Why Formatter.Format's return value is []uint8 but []byte? http://godoc.org/github.com/stretchrcom/goweb/goweb#Formatter encoding/json package and other encoding packges use []byte as type of serialized data.

matryer commented 11 years ago

This was left over from when the encodings did things differently. Would you like to fix and issue a pull request?

On 21 Feb 2013, at 23:17, Takuya Ueda notifications@github.com wrote:

Hi, I have a question. Why Formatter.Format's return value is []uint8 but []byte? http://godoc.org/github.com/stretchrcom/goweb/goweb#Formatter encoding/json package and other encoding packges use []byte as type of serialized data.

— Reply to this email directly or view it on GitHub.

tenntenn commented 11 years ago

Thank you for your reply. OK. I'll fix it.