Skip to content

Commit

Permalink
tpl/data: Fix GetCSV deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
jmooring authored and bep committed Feb 1, 2024
1 parent f5ec75d commit 5dd06b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tpl/data/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5dd06b4

Please sign in to comment.