From bd86086f627b8d231c4f38c447c38170db6c1a82 Mon Sep 17 00:00:00 2001 From: Colton Hurst Date: Mon, 5 Feb 2024 19:34:38 -0500 Subject: [PATCH] SM-1082: Mark statePath as optional in Go wrapper --- languages/go/example/example.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/languages/go/example/example.go b/languages/go/example/example.go index 9f654822f..3ebfcd09a 100644 --- a/languages/go/example/example.go +++ b/languages/go/example/example.go @@ -16,10 +16,13 @@ func main() { bitwardenClient, _ := sdk.NewBitwardenClient(&apiURL, &identityURL) accessToken := os.Getenv("ACCESS_TOKEN") - statePath := os.Getenv("STATE_PATH") organizationIDStr := os.Getenv("ORGANIZATION_ID") projectName := os.Getenv("PROJECT_NAME") + // Configuring the statePath is optional, pass nil + // in AccessTokenLogni() to not use state + statePath := os.Getenv("STATE_PATH") + if projectName == "" { projectName = "NewTestProject" // default value }