From 3341d4aee9514f447cb8be12287ae092f7d94a3a Mon Sep 17 00:00:00 2001 From: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Date: Wed, 2 Oct 2024 12:14:29 +0200 Subject: [PATCH] fix(onboarding): update go snippet (#8333) --- .../src/component/onboarding/dialog/snippets/go.md | 12 ++++-------- .../component/onboarding/flow/ProjectOnboarding.tsx | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/frontend/src/component/onboarding/dialog/snippets/go.md b/frontend/src/component/onboarding/dialog/snippets/go.md index 65fefa8652..19cf5039c7 100644 --- a/frontend/src/component/onboarding/dialog/snippets/go.md +++ b/frontend/src/component/onboarding/dialog/snippets/go.md @@ -1,12 +1,14 @@ 1\. Install the SDK ```sh -go get github.com/Unleash/unleash-client-go/v3 +go get github.com/Unleash/unleash-client-go/v4 ``` 2\. Run Unleash ```go +package main + import ( - "github.com/Unleash/unleash-client-go/v3" + "github.com/Unleash/unleash-client-go/v4" "net/http" "time" ) @@ -31,12 +33,6 @@ func main() { --- ```go -import ( - "github.com/Unleash/unleash-client-go/v3" - "net/http" - "time" -) - func init() { unleash.Initialize( unleash.WithListener(&unleash.DebugListener{}), diff --git a/frontend/src/component/onboarding/flow/ProjectOnboarding.tsx b/frontend/src/component/onboarding/flow/ProjectOnboarding.tsx index e1907ecdf8..1f4be32c2b 100644 --- a/frontend/src/component/onboarding/flow/ProjectOnboarding.tsx +++ b/frontend/src/component/onboarding/flow/ProjectOnboarding.tsx @@ -119,7 +119,7 @@ export const ProjectOnboarding = ({ }; return ( - +