code: func (g *GenOpts) EnsureDefaults() error {
  	if g.defaultsEnsured {
  		return nil
  	}
  	DefaultSectionOpts(g)
  	if g.LanguageOpts == nil {
  		g.LanguageOpts = GoLangOpts()
  	}
  	// set defaults for flattening options
  	g.FlattenOpts = &analysis.FlattenOpts{
  		Minimal:      true,
  		Verbose:      true,
  		RemoveUnused: false,
  		Expand:       false,
  	}
  	g.defaultsEnsured = true
  	return nil
  }
docs: // EnsureDefaults for these gen opts