feat: functional options to New() (#149)

This commit is contained in:
Marc Vertes
2019-04-05 21:36:48 +02:00
committed by Ludovic Fernandez
parent 798252e020
commit 8910769b77
17 changed files with 152 additions and 133 deletions

View File

@@ -51,7 +51,7 @@ func runCheck(t *testing.T, p string) {
r, w, _ := os.Pipe()
os.Stdout = w
i := interp.New(interp.Opt{Entry: "main"})
i := interp.New()
i.Use(interp.ExportValue)
i.Use(stdlib.Value)