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)) }