Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultFormat = JSON
DefaultFormat matches the Etherscan API, which serves application/json for every endpoint. Tables remain available via -o table.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Format ¶
type Format string
func ParseFormat ¶ added in v1.0.1
ParseFormat validates a format name from --output or default_output. Unknown values are rejected rather than falling through to the table renderer, which is what Write would otherwise do: it tests for JSON and CSV, so anything else silently rendered as a table.
Click to show internal directories.
Click to hide internal directories.