unexport and rework some more things

This commit is contained in:
Henrique Dias
2017-06-25 14:48:34 +01:00
parent fffbcc7098
commit e1bee6d07e
5 changed files with 27 additions and 31 deletions

View File

@@ -24,7 +24,7 @@ type editor struct {
}
// getEditor gets the editor based on a Info struct
func (i *fileInfo) getEditor(r *http.Request) (*editor, error) {
func getEditor(r *http.Request, i *fileInfo) (*editor, error) {
var err error
// Create a new editor variable and set the mode