-
Notifications
You must be signed in to change notification settings - Fork 292
FAQ
Chris Lu edited this page Nov 3, 2018
·
1 revision
There could be many different reasons. The common ones:
- Avoid printing to stdout. Write to stderr via
println(), orfmt.Fprintf(os.stderr, "...", ...). This is because gio.Emit() actually uses stdout to output data to stdin of the next step. - Use
flagpackage, instead of usingos.Argsdirectly. Because Gleam invokes each executor viaflagpackage. Multiple ways to parse arguments would cause confusion.