]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
tpl/data: Fix GetCSV deprecation message
authorJoe Mooring <joe.mooring@veriphor.com>
Thu, 1 Feb 2024 18:11:53 +0000 (10:11 -0800)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 1 Feb 2024 18:21:15 +0000 (19:21 +0100)
tpl/data/data.go

index 78f1f3f48e2a12b1974f3c9c743f230ad6ecc779..097cfe4a80db341229712abdc7712c55aadae9ba 100644 (file)
@@ -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