mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
tpl/data: Fix GetCSV deprecation message
This commit is contained in:
parent
f5ec75db36
commit
5dd06b4136
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ type Namespace struct {
|
||||||
// If you provide multiple parts for the URL they will be joined together to the final URL.
|
// 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.
|
// 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) {
|
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)
|
url, headers := toURLAndHeaders(args)
|
||||||
cache := ns.cacheGetCSV
|
cache := ns.cacheGetCSV
|
||||||
|
|
Loading…
Reference in a new issue