mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
fix(onboarding): update go snippet (#8333)
This commit is contained in:
parent
32849b6322
commit
3341d4aee9
@ -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{}),
|
||||
|
@ -119,7 +119,7 @@ export const ProjectOnboarding = ({
|
||||
};
|
||||
|
||||
return (
|
||||
<Container data-testid='container'>
|
||||
<Container>
|
||||
<TitleBox>
|
||||
<TitleRow>
|
||||
<Typography fontWeight='bold'>
|
||||
|
Loading…
Reference in New Issue
Block a user