summaryrefslogtreecommitdiff
path: root/internal/deprecated/deprecated.go
blob: ee49088a309d58355860f5c34c5df0a1b5f2e3d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package deprecated

import (
	"context"
	"fmt"
	"log/slog"
)

// WarnDeprecated - use this to warn about deprecated template functions or
// datasources
func WarnDeprecated(ctx context.Context, msg string) {
	slog.WarnContext(ctx, fmt.Sprintf("Deprecated: %s", msg))
}