Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDataSourceArg ¶
ParseDataSourceArg returns a reader for data based on the argument, and a Link if the argument was of that kind.
Errors:
- ipldtool-error-invalid-args -- if the input arg can't be made into a readable stream.
func ParseEncoderArg ¶
ParseDataSourceArg returns an IPLD encoder based on the argument string. It handles strings of the form "codec:{name}", "codec:0x{code}", and the special string "debug".
The argName parameter is used purely for error message formatting purposes.
Errors:
- ipldtool-error-invalid-args -- if the input arg can't be made into a readable stream.
func StringIsPathish ¶
StringIsPathish returns true if the string explicitly looks like a filesystem path (starts with `./`, `../`, or `/`).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.