mirror of
https://github.com/deuill/go-php.git
synced 2024-09-21 08:50:45 +00:00
Fix README example for NewContext restructuring
This commit is contained in:
parent
6a3fd786ea
commit
acc2b7a9bd
@ -22,11 +22,10 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
engine, _ := php.New()
|
engine, _ := php.New()
|
||||||
context, _ := php.NewContext(os.Stdout)
|
context, _ := engine.NewContext(os.Stdout)
|
||||||
|
|
||||||
context.Exec("index.php")
|
context.Exec("index.php")
|
||||||
|
|
||||||
context.Destroy()
|
|
||||||
engine.Destroy()
|
engine.Destroy()
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user