Description

EnvInit is a middleware that allocates an environment map if it is nil. While it's impossible in general to ensure that Env is never nil in a middleware stack, in most common cases placing this middleware at the top of the stack will eliminate the need for repetative nil checks.

EnvInit is referenced in 12 repositories

github.com/zenazn/goji github.com/sinelga/go_cv github.com/Lavos/mdhost_api

...