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