From 6e6f8b038cf0930e9144d054103c5c586dc00da3 Mon Sep 17 00:00:00 2001 From: Dhruvi Goyal Date: Fri, 9 Dec 2022 11:28:47 -0500 Subject: [PATCH] Demo3 Fix --- examples/demo3/src/backend/server/demo3_service.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/demo3/src/backend/server/demo3_service.go b/examples/demo3/src/backend/server/demo3_service.go index a93d86d37..f73b06c93 100644 --- a/examples/demo3/src/backend/server/demo3_service.go +++ b/examples/demo3/src/backend/server/demo3_service.go @@ -23,6 +23,7 @@ import ( "fmt" "net/http" "net/url" + "path" "strconv" "strings" "sync" @@ -119,6 +120,8 @@ func Init(envPath string, envName string) (port string, err error) { // Retrieve environmental variable var config util.Config + // trim file extension + envName = strings.TrimSuffix(envName, path.Ext(envName)) log.Info("Using config values from ", envPath, "/", envName) config, err = util.LoadConfig(envPath, envName) if err != nil {