Adds write-bytes usage info

This commit is contained in:
sloum 2022-07-07 14:38:54 -07:00
parent 91aa975455
commit a740318116
1 changed files with 1 additions and 0 deletions

View File

@ -199,6 +199,7 @@ var usageStrings = map[string]string{
"url-scheme": "(url-scheme [url: string] [[new-scheme: string]]) => string\n\nReturns a string representing the scheme portion of the url. If a new-scheme value is provided the whole url will be returned but with the original scheme replaced by the new-scheme value",
"usage": "(usage [[identifier: string|symbol]]) => ()\n\nIf not passed a value, usage will display a list of all known built-in procedures, as well as a list of loaded modules. When given a value equal to a built-in procedure a description of that value will be output to stdout. When given a module name or alias followed by two colons (`my-mod::`) a list of symbols that the module supplies usage information for will be printed to stdout. When passed the full identifier of a module's symbol that has usage information available (example: `my-mod::my-proc`) that usage information will be displayed. To get usage information for a module or its symbols the module must first be loaded via `load-mod`",
"write": "(write [string] [[io-handle]]) => ()|io-handle\n\nWrites the given string to stdout. If an optional io-handle has been provided the string will be written to the given io-handle. If the io-handle is closed an exception will occur. Returns an empty list if no io-handle is given, or returns the io-handle if one was given",
"write-bytes": "(write-bytes [bytes: list|number] [[io-handle]]) => ()|io-handle\n\nWrites the given list of numbers (or the single byte number) to stdout as bytes. If an optional io-handle has been provided the list (or single byte number) will be written to the given io-handle. If the io-handle is closed an exception will occur. Returns an empty list if no io-handle is given, or returns the io-handle if one was given",
"write-raw": "(write-raw [string] [[io-handle]]) => ()|io-handle\n\nWrites the given string to stdout, or an optionally provided io-handle. Does not process any escape values or special characters within the given string. Returns an empty list if no io-handle is given, or returns the given io-handle",
"zero?": "(zero? [number]) => bool\n\nChecks if the given number is zero",
}