1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-18 00:19:49 +01:00

fix(onboarding): update go snippet (#8333)

This commit is contained in:
Tymoteusz Czech 2024-10-02 12:14:29 +02:00 committed by GitHub
parent 32849b6322
commit 3341d4aee9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 9 deletions

View File

@ -1,12 +1,14 @@
1\. Install the SDK 1\. Install the SDK
```sh ```sh
go get github.com/Unleash/unleash-client-go/v3 go get github.com/Unleash/unleash-client-go/v4
``` ```
2\. Run Unleash 2\. Run Unleash
```go ```go
package main
import ( import (
"github.com/Unleash/unleash-client-go/v3" "github.com/Unleash/unleash-client-go/v4"
"net/http" "net/http"
"time" "time"
) )
@ -31,12 +33,6 @@ func main() {
--- ---
```go ```go
import (
"github.com/Unleash/unleash-client-go/v3"
"net/http"
"time"
)
func init() { func init() {
unleash.Initialize( unleash.Initialize(
unleash.WithListener(&unleash.DebugListener{}), unleash.WithListener(&unleash.DebugListener{}),

View File

@ -119,7 +119,7 @@ export const ProjectOnboarding = ({
}; };
return ( return (
<Container data-testid='container'> <Container>
<TitleBox> <TitleBox>
<TitleRow> <TitleRow>
<Typography fontWeight='bold'> <Typography fontWeight='bold'>