1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-01-12 03:19:45 +02:00

Updated embedded examples

This commit is contained in:
Tim Voronov 2019-02-21 09:46:36 -05:00
parent 6e15846d0f
commit 25f3ef0646
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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)