tpl/data: Fix GetCSV deprecation message - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 5dd06b4136aead1d4c8ef835f0670c32ae321152
DIR parent f5ec75db36eb24497bc9c8c42e39654d31f7582b
HTML Author: Joe Mooring <joe.mooring@veriphor.com>
Date: Thu, 1 Feb 2024 10:11:53 -0800
tpl/data: Fix GetCSV deprecation message
Diffstat:
M tpl/data/data.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/tpl/data/data.go b/tpl/data/data.go
@@ -64,7 +64,7 @@ type Namespace struct {
// If you provide multiple parts for the URL they will be joined together to the final URL.
// GetCSV returns nil or a slice slice to use in a short code.
func (ns *Namespace) GetCSV(sep string, args ...any) (d [][]string, err error) {
- hugo.Deprecate("data.GetJSON", "use resources.Get or resources.GetRemote with transform.Unmarshal.", "v0.123.0")
+ hugo.Deprecate("data.GetCSV", "use resources.Get or resources.GetRemote with transform.Unmarshal.", "v0.123.0")
url, headers := toURLAndHeaders(args)
cache := ns.cacheGetCSV