aboutsummaryrefslogtreecommitdiff
path: root/example.go
diff options
context:
space:
mode:
Diffstat (limited to 'example.go')
-rw-r--r--example.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/example.go b/example.go
index 8a0fcdf..b8e5757 100644
--- a/example.go
+++ b/example.go
@@ -8,6 +8,7 @@ import (
"encoding/json"
"fmt"
"mime/multipart"
+ "net"
"net/http"
"net/url"
"strconv"
@@ -60,10 +61,11 @@ type Example struct {
}
// NewExample create, initialize, and setup an example of Gorankusu.
-func NewExample(listenAddress string, isDev bool) (ex *Example, err error) {
+func NewExample(listener net.Listener, listenAddress string, isDev bool) (ex *Example, err error) {
var logp = `NewExample`
var env = &Environment{
+ Listener: listener,
ListenAddress: listenAddress,
ResultsDir: `testdata/example/`,
ResultsSuffix: `example`,