maddyblue / esc

A simple file embedder for Go
http://godoc.org/github.com/mjibson/esc
MIT License
637 stars 73 forks source link

receiver name should not be an underscore #3

Closed alicebob closed 9 years ago

alicebob commented 9 years ago

Golint on the generated file gives this error:

$ golint .
static.go:33:1: receiver name should not be an underscore
static.go:41:1: receiver name should not be an underscore

this huge PR works around that.

alicebob commented 9 years ago

Sorry to bug you again over such a minor thing, but it turns out you don't need any receiver name at all, so this is probably the nicest way to solve this:

https://github.com/alicebob/esc/commit/6ae47d807cc7f9b2e8eacb5fb29f86aa4d9cbff3