Skip to content

Commit

Permalink
fix(onboarding): update go snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
Tymek committed Oct 2, 2024
1 parent 32849b6 commit e53a075
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions frontend/src/component/onboarding/dialog/snippets/go.md
Original file line number Diff line number Diff line change
@@ -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"
)
Expand All @@ -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{}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const ProjectOnboarding = ({
};

return (
<Container data-testid='container'>
<Container>
<TitleBox>
<TitleRow>
<Typography fontWeight='bold'>
Expand Down

0 comments on commit e53a075

Please sign in to comment.