From 8067ad4c7c1c2bc7ec8d693eadeb4e2aa063aad4 Mon Sep 17 00:00:00 2001 From: aidanaden Date: Fri, 29 Sep 2023 12:39:17 +0800 Subject: [PATCH] fix: add quotes to strings in config --- internal/pkg/config/config.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/pkg/config/config.go b/internal/pkg/config/config.go index 8f850f1..f83d0f0 100644 --- a/internal/pkg/config/config.go +++ b/internal/pkg/config/config.go @@ -19,11 +19,11 @@ type Config struct { } const cfg_template = ` -data_dir: {{ .DataDir }} -canvas_url: {{ .CanvasUrl }} -canvas_username: {{ .Username }} -canvas_password: {{ .Password }} -access_token: {{ .AccessToken }}` +data_dir: "{{ .DataDir }}" +canvas_url: "{{ .CanvasUrl }}" +canvas_username: "{{ .Username }}" +canvas_password: "{{ .Password }}" +access_token: "{{ .AccessToken }}"` func GenerateConfigYaml(config *Config) string { cleanedTemplate := strings.ReplaceAll(cfg_template, "\t", " ")