From 25f3ef0646b8394a13670e27c8ae1a5636944856 Mon Sep 17 00:00:00 2001 From: Tim Voronov Date: Thu, 21 Feb 2019 09:46:36 -0500 Subject: [PATCH] Updated embedded examples --- README.md | 4 ++-- examples/embedded.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 828c99f1..52d83a03 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/examples/embedded.go b/examples/embedded.go index 4811cd2e..9712972e 100644 --- a/examples/embedded.go +++ b/examples/embedded.go @@ -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)