Documentation
¶
Overview ¶
Package fallbackstrat provides strategies for generating tokens. The strategies here fall back to using the tokens.InferredModules strategy if the primary strategy fails to find a module for a given token.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KnownModulesWithInferredFallback ¶
func KnownModulesWithInferredFallback( p *info.Provider, tfPackagePrefix, defaultModule string, modules []string, finalize tokens.Make, ) (tokens.Strategy, error)
KnownModulesWithInferredFallback returns a strategy that uses the KnownModules strategy for the given modules, but falls back to the inferred strategy if the KnownModules strategy fails to find a module for a given token.
See tokens.KnownModules and tokens.InferredModules for more information.
func MappedModulesWithInferredFallback ¶
func MappedModulesWithInferredFallback( p *info.Provider, tfPackagePrefix, defaultModule string, modules map[string]string, finalize tokens.Make, ) (tokens.Strategy, error)
MappedModulesWithInferredFallback returns a strategy that uses the MappedModules strategy for the given modules, but falls back to the inferred strategy if the MappedModules strategy fails to find a module for a given token.
See tokens.MappedModules and tokens.InferredModules for more information.
Types ¶
This section is empty.