mirror of
https://github.com/MontFerret/ferret.git
synced 2025-07-15 01:25:00 +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
|
// by default, Ferret Runtime does not know about any HTML drivers
|
||||||
// all HTML manipulations are done via functions from standard library
|
// all HTML manipulations are done via functions from standard library
|
||||||
// that assume that at least one driver is available
|
// that assume that at least one driver is available
|
||||||
ctx = drivers.WithDynamic(ctx, cdp.NewDriver())
|
ctx = drivers.WithContext(ctx, cdp.NewDriver())
|
||||||
ctx = drivers.WithStatic(ctx, http.NewDriver())
|
ctx = drivers.WithContext(ctx, http.NewDriver(), drivers.AsDefault())
|
||||||
|
|
||||||
out, err := program.Run(ctx)
|
out, err := program.Run(ctx)
|
||||||
|
|
||||||
|
@ -63,8 +63,8 @@ func getTopTenTrendingTopics() ([]*Topic, error) {
|
|||||||
// by default, Ferret Runtime does not know about any HTML drivers
|
// by default, Ferret Runtime does not know about any HTML drivers
|
||||||
// all HTML manipulations are done via functions from standard library
|
// all HTML manipulations are done via functions from standard library
|
||||||
// that assume that at least one driver is available
|
// that assume that at least one driver is available
|
||||||
ctx = drivers.WithDynamic(ctx, cdp.NewDriver())
|
ctx = drivers.WithContext(ctx, cdp.NewDriver())
|
||||||
ctx = drivers.WithStatic(ctx, http.NewDriver())
|
ctx = drivers.WithContext(ctx, http.NewDriver(), drivers.AsDefault())
|
||||||
|
|
||||||
out, err := program.Run(ctx)
|
out, err := program.Run(ctx)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user