Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A bit of a usage example would be nice. #4

Open
MichaelJBrune opened this issue Mar 31, 2018 · 3 comments
Open

A bit of a usage example would be nice. #4

MichaelJBrune opened this issue Mar 31, 2018 · 3 comments

Comments

@MichaelJBrune
Copy link

Hey duder,

Am looking at this and looks really good but would love a bit of of an example on how to use the library.

Thanks,
Michael Brune

@iamacarpet
Copy link
Owner

Hello @MJBrune

Have you tried the stuff in the example folder?

The instructions are at the top of server.go - not the ideal place to expect them, I realize that.

You are welcome to submit a PR if you'd like to improve the examples.

Regards,
iamacarpet

@MichaelJBrune
Copy link
Author

MichaelJBrune commented Apr 3, 2018 via email

@iamacarpet
Copy link
Owner

True, I can’t see any reference to stderr

I’ll be honest, it has been a good while since I wrote this and haven’t needed to do much with it since, so I couldn’t say if that is an oversight or just that stderr isn’t exposed independently by the base library. I’d like to say the latter, but can’t say without fully checking.

I can say this has been in use a lot since publish on our internal projects and we’ve never noticed anything missing from our PowerShell output. Likewise with the need to flush, it has always seemed instantaneous. If this is with the stdin and stdout file handles, they aren’t buffered AFAIK, especially not on the Go side.

If you find anything that needs fixing, or would like to submit a README when you’ve got to grips with it, a PR would always be welcome.

Regards,
iamacarpet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants