Skip to content

Commit

Permalink
SM-1082: Mark statePath as optional in Go wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
coltonhurst committed Feb 6, 2024
1 parent 5cbd721 commit bd86086
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion languages/go/example/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit bd86086

Please sign in to comment.