Skip to content

Commit 6de02d2

Browse files
committed
initing the variable on initialise call.
1 parent 729ada5 commit 6de02d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

localEvaluation/localEvaluation.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ type UserProperties struct {
4141
TemplateId string `json:"template_id,omitempty"`
4242
}
4343

44-
func init() {
44+
func Init() {
4545
err := godotenv.Load()
4646
if err != nil {
4747
fmt.Printf("No .env file found")
@@ -67,6 +67,7 @@ func init() {
6767
}
6868

6969
func Initialize() {
70+
Init()
7071
config := local.Config{
7172
Debug: LocalEvaluationConfigDebug,
7273
ServerUrl: LocalEvaluationConfigServerUrl,

0 commit comments

Comments
 (0)