GoLang readline_info

request it (185)
GoLang replacement for PHP's readline_info [edit | history]

Do you know a GoLang replacement for PHP's readline_info? Write it!

PHP readline_info

PHP original manual for readline_info [ show | php.net ]


(PHP 4, PHP 5, PHP 7)

readline_infoGets/sets various internal readline variables


mixed readline_info ([ string $varname [, string $newvalue ]] )

Gets or sets various internal readline variables.



A variable name.


If provided, this will be the new value of the setting.

Return Values

If called with no parameters, this function returns an array of values for all the setting readline uses. The elements will be indexed by the following values: done, end, erase_empty_line, library_version, line_buffer, mark, pending_input, point, prompt, readline_name, and terminal_name.

If called with one or two parameters, the old value is returned.