package resourcehelpers
import "github.com/gohugoio/hugo/tpl/internal/resourcehelpers"
Index ¶
- func ResolveArgs(args []interface{}) (resources.ResourceTransformer, map[string]interface{}, error)
- func ResolveIfFirstArgIsString(args []interface{}) (resources.ResourceTransformer, string, bool)
Functions ¶
func ResolveArgs ¶
func ResolveArgs(args []interface{}) (resources.ResourceTransformer, map[string]interface{}, error)
This roundabout way of doing it is needed to get both pipeline behaviour and options as arguments.
func ResolveIfFirstArgIsString ¶
func ResolveIfFirstArgIsString(args []interface{}) (resources.ResourceTransformer, string, bool)
We allow string or a map as the first argument in some cases.
Source Files ¶
- Version
- v0.76.2
- Published
- Oct 7, 2020
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 25 minutes ago –
Tools for package owners.