type Features … const GenericTypeDecls … const GenericFuncDecls … const EmbeddedTypeSets … const TypeInstantiation … const FuncInstantiation … func (f Features) String() string { … } // ForPackage computes which generic features are used directly by the // package being analyzed. func ForPackage(inspect *inspector.Inspector, info *types.Info) Features { … }