From 5ca40918f2475107c301c63dffa2cf02f9cff98e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Gomez?= Date: Mon, 16 May 2022 00:00:18 +0200 Subject: [PATCH] Expose ToBuilder() from DashboardModel --- decoder/dashboard.go | 2 +- decoder/yaml.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/decoder/dashboard.go b/decoder/dashboard.go index ffc1a664..6f78df32 100644 --- a/decoder/dashboard.go +++ b/decoder/dashboard.go @@ -27,7 +27,7 @@ type DashboardModel struct { Rows []DashboardRow } -func (d *DashboardModel) toDashboardBuilder() (dashboard.Builder, error) { +func (d *DashboardModel) ToBuilder() (dashboard.Builder, error) { emptyDashboard := dashboard.Builder{} opts := []dashboard.Option{ d.editable(), diff --git a/decoder/yaml.go b/decoder/yaml.go index 5c8ace1e..12535c51 100644 --- a/decoder/yaml.go +++ b/decoder/yaml.go @@ -16,5 +16,5 @@ func UnmarshalYAML(input io.Reader) (dashboard.Builder, error) { return dashboard.Builder{}, err } - return parsed.toDashboardBuilder() + return parsed.ToBuilder() }