starlet icon indicating copy to clipboard operation
starlet copied to clipboard

How to capture stdout, stderr?

Open yonas opened this issue 1 year ago • 1 comments

I'd like to capture stdout and stderr.

yonas avatar Oct 15 '24 18:10 yonas

@yonas

For the standard print() method, you can define your own print handler via SetPrintFunc.

For other Go methods you have provided for Starlark, please implement them in the usual Go way.

hyorigo avatar Oct 29 '24 16:10 hyorigo