code: func NewResourcesWriter(filename string) (*ResourcesWriter, error) {
  	file, err := codegen.SourceFileFor(filename)
  	if err != nil {
  		return nil, err
  	}
  	return &ResourcesWriter{SourceFile: file}, nil
  }
docs: // NewResourcesWriter returns a contexts code writer.
  // Resources provide the glue between the underlying request data and the user controller.