From d9855ed8cd7328c4d53c9e06417586993a34357b Mon Sep 17 00:00:00 2001 From: "marko.tikvic" Date: Mon, 11 Mar 2019 23:19:39 +0100 Subject: [PATCH] : -> = --- payload.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/payload.go b/payload.go index e7cf773..6a7004e 100644 --- a/payload.go +++ b/payload.go @@ -293,12 +293,12 @@ func initMetadata(project string) error { // LoadMetadataFromFile expects file in format: // // [ payload A identifier ] -// key1 : value1 -// key2 : value2 +// key1 = value1 +// key2 = value2 // ... // [ payload B identifier ] -// key1 : value1 -// key2 : value2 +// key1 = value1 +// key2 = value2 // ... // // TODO(marko): Currently supports only one hardcoded language... @@ -329,7 +329,7 @@ func LoadMetadataFromFile(path string) error { return fmt.Errorf("webutility: LoadMetadataFromFile: error on line %d: [no header] [%s]", i+1, l) } - parts := strings.Split(l, ":") + parts := strings.Split(l, "=") if len(parts) != 2 { return fmt.Errorf("webutility: LoadMetadataFromFile: error on line %d: [invalid format] [%s]", i+1, l) } -- 1.8.1.2