Skip to content

Commit

Permalink
README: add import to example
Browse files Browse the repository at this point in the history
  • Loading branch information
adonovan authored Apr 10, 2019
1 parent 927e8ef commit 24246af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ When you have finished, type `Ctrl-D` to close the REPL's input stream.
Embed the interpreter in your Go program:

```
import "go.starlark.net/starlark"
// Execute Starlark program in a file.
thread := &starlark.Thread{Name: "my thread"}
globals, err := starlark.ExecFile(thread, "fibonacci.star", nil, nil)
Expand Down

0 comments on commit 24246af

Please sign in to comment.