Skip to content

Commit e7cb925

Browse files
authored
Merge pull request #2 from hagna/master
Add SetOut for a different writer
2 parents 753d2ae + 21db8a6 commit e7cb925

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ops.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ func NewEnv(env *Env) *Env {
119119
}
120120
}
121121

122+
func (e *Env) SetOut(o io.Writer) {
123+
e.out = o
124+
}
125+
122126
func (n *Node) CarIsNil() bool {
123127
return n.car == nil || n.car.t == NodeNil
124128
}

0 commit comments

Comments
 (0)