mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +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 | 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{}), | ||||||
|  | |||||||
| @ -119,7 +119,7 @@ export const ProjectOnboarding = ({ | |||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     return ( |     return ( | ||||||
|         <Container data-testid='container'> |         <Container> | ||||||
|             <TitleBox> |             <TitleBox> | ||||||
|                 <TitleRow> |                 <TitleRow> | ||||||
|                     <Typography fontWeight='bold'> |                     <Typography fontWeight='bold'> | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user