mirror of
				https://github.com/MontFerret/ferret.git
				synced 2025-10-30 23:37:40 +02:00 
			
		
		
		
	Updated embedded examples
This commit is contained in:
		| @@ -280,8 +280,8 @@ func getTopTenTrendingTopics() ([]*Topic, error) { | ||||
| 	// by default, Ferret Runtime does not know about any HTML drivers | ||||
| 	// all HTML manipulations are done via functions from standard library | ||||
| 	// that assume that at least one driver is available | ||||
| 	ctx = drivers.WithDynamic(ctx, cdp.NewDriver()) | ||||
| 	ctx = drivers.WithStatic(ctx, http.NewDriver()) | ||||
| 	ctx = drivers.WithContext(ctx, cdp.NewDriver()) | ||||
| 	ctx = drivers.WithContext(ctx, http.NewDriver(), drivers.AsDefault()) | ||||
|  | ||||
| 	out, err := program.Run(ctx) | ||||
|  | ||||
|   | ||||
| @@ -63,8 +63,8 @@ func getTopTenTrendingTopics() ([]*Topic, error) { | ||||
| 	// by default, Ferret Runtime does not know about any HTML drivers | ||||
| 	// all HTML manipulations are done via functions from standard library | ||||
| 	// that assume that at least one driver is available | ||||
| 	ctx = drivers.WithDynamic(ctx, cdp.NewDriver()) | ||||
| 	ctx = drivers.WithStatic(ctx, http.NewDriver()) | ||||
| 	ctx = drivers.WithContext(ctx, cdp.NewDriver()) | ||||
| 	ctx = drivers.WithContext(ctx, http.NewDriver(), drivers.AsDefault()) | ||||
|  | ||||
| 	out, err := program.Run(ctx) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user