mirror of
https://github.com/MontFerret/ferret.git
synced 2025-01-26 03:51:57 +02:00
Updated embedded examples
This commit is contained in:
parent
6e15846d0f
commit
25f3ef0646
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user